|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Frimble is just a helper class. It provides a common access to JFrame and JInternalFrame Actually if someone want to write a container that has a least a) visible title b) menu bar c) multi panes/layers d) can be in front or behind others
Method Summary | |
void |
addFrimbleListener(FrimbleListener fl)
Method addFrimbleListener |
void |
addKeyListener(java.awt.event.KeyListener l)
Method addKeyListener |
void |
dispose()
Method dispose initiates a close sequence for the frimble. |
java.awt.Rectangle |
getBounds()
Method getBounds |
java.awt.Container |
getContentPane()
Method getContentPane gets the content pane for the frimble. |
int |
getDefaultCloseOperation()
Method getDefaultCloseOperation gets the default close operation for frimble //TODO - still needs true adaption? |
java.awt.Component |
getFocusOwner()
Method getFocusOwner gets the Component that is the focus owner for the frimble. |
java.awt.Component |
getFrimbleContained()
Method showOpenDialog shows an save dialog (attached to this frimble). |
java.awt.Component |
getGlassPane()
Method getGlassPane gets the glass pane for the frimble. |
int |
getHeight()
Method getHeight |
javax.swing.JMenuBar |
getJMenuBar()
Gets the Jemnubar for the frimble. |
javax.swing.JLayeredPane |
getLayeredPane()
Method getLayeredPane gets the layered pane for the frimble. |
java.awt.Point |
getLocation()
Method getLocation |
java.awt.Frame |
getOwnerFrame()
Method getOwnerFrame |
java.awt.Dimension |
getPreferredSize()
Method getPreferredSize |
javax.swing.JRootPane |
getRootPane()
Method getRootPane gets the root pane for the frimble. |
java.awt.Dimension |
getSize()
Method getSize |
java.lang.String |
getTitle()
Method getTitle gets the title for a frimble. |
int |
getWidth()
Method getWidth |
boolean |
isResizable()
Method isResizable determines of the frimble supports resize. |
boolean |
isVisible()
Method isVisible |
Frimble |
makeFrimble(FrimbleAware frimbleAwareComponent)
Method makeFrimble |
void |
pack()
Method pack packs the frimble. |
void |
registerFrimbleCallback(FrimbleCallback fcb)
Method registerFrimbleCallback |
void |
removeFrimbleListener(FrimbleListener fl)
Method removeFrimbleListener |
void |
setBackground(java.awt.Color col)
Method setBackground |
void |
setClosed(boolean b)
Method setClosed |
void |
setContentPane(java.awt.Container contentPane)
Method setContentPane places a container as the content pane. |
void |
setDefaultCloseOperation(int operation)
Method setDefaultCloseOperation sets the default close operation //TODO ints the same for JFrame and JInternalFrame? |
void |
setFrameIcon(javax.swing.ImageIcon imageIcon)
Method setFrameIcon |
void |
setGlassPane(java.awt.Component glassPane)
Method setGlassPane sets teh glass pane. |
void |
setIconImage(java.awt.Image image)
Method setIconImage |
void |
setJMenuBar(javax.swing.JMenuBar m)
Method setJMenuBar allows the menu bar to be set for the frimble. |
void |
setLayeredPane(javax.swing.JLayeredPane layeredPane)
Method setLayeredPane sets the layered pane. |
void |
setLocation(int x,
int y)
Method setLocation |
void |
setResizable(boolean resizable)
Method setResizable sets the resizability of this frimble. |
void |
setSize(java.awt.Dimension dim)
Method setSize |
void |
setTitle(java.lang.String t)
Method setTitle sets a title from the frimble |
void |
setVisible(boolean yesOrNo)
Method setVisible controls the visibility of the frimble. |
void |
show()
Method show same as setVisible(true). |
int |
showOpenDialog(javax.swing.JFileChooser chooser)
Method showOpenDialog shows an open dialog (attached to this frimble). |
int |
showSaveDialog(javax.swing.JFileChooser chooser)
Method showSaveDialog shows an save dialog (attached to this frimble). |
void |
toBack()
Method toBack moves the frimble to the back of it's peer set of frimbles. |
void |
toFront()
Method toFront moves the frimble to the front of it's peer set of frimbles. |
void |
validate()
Method validate |
Method Detail |
public void addFrimbleListener(FrimbleListener fl)
fl
- public void removeFrimbleListener(FrimbleListener fl)
fl
- public void setJMenuBar(javax.swing.JMenuBar m)
public javax.swing.JMenuBar getJMenuBar()
public void setTitle(java.lang.String t)
t
- titlepublic java.lang.String getTitle()
public void pack()
public void setVisible(boolean yesOrNo)
yesOrNo
- visible or invisible.public java.awt.Component getFocusOwner()
public java.awt.Component getGlassPane()
public java.awt.Container getContentPane()
public javax.swing.JLayeredPane getLayeredPane()
public javax.swing.JRootPane getRootPane()
public boolean isResizable()
public int getDefaultCloseOperation()
public void dispose()
public void setContentPane(java.awt.Container contentPane)
contentPane
- the new content panepublic void setDefaultCloseOperation(int operation)
operation
- new default close actionpublic void setGlassPane(java.awt.Component glassPane)
public void setLayeredPane(javax.swing.JLayeredPane layeredPane)
public void setResizable(boolean resizable)
public void show()
public void toBack()
public void toFront()
public int showOpenDialog(javax.swing.JFileChooser chooser)
chooser
- the file chooser to open.
public int showSaveDialog(javax.swing.JFileChooser chooser)
chooser
- the file chooser to open.
public java.awt.Component getFrimbleContained()
public java.awt.Frame getOwnerFrame()
public java.awt.Dimension getSize()
public void setSize(java.awt.Dimension dim)
dim
- public void setIconImage(java.awt.Image image)
image
- public void setBackground(java.awt.Color col)
col
- public void setClosed(boolean b) throws java.beans.PropertyVetoException
b
-
java.beans.PropertyVetoException
public void setFrameIcon(javax.swing.ImageIcon imageIcon)
imageIcon
- public Frimble makeFrimble(FrimbleAware frimbleAwareComponent)
public void registerFrimbleCallback(FrimbleCallback fcb)
fcb
- public void validate()
public java.awt.Dimension getPreferredSize()
public java.awt.Point getLocation()
public void setLocation(int x, int y)
x
- y
- public void addKeyListener(java.awt.event.KeyListener l)
l
- public int getWidth()
public int getHeight()
public java.awt.Rectangle getBounds()
public boolean isVisible()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |