public class IcyFrame extends java.lang.Object implements javax.swing.event.InternalFrameListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.beans.PropertyChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
IcyFrame.IcyFrameState |
Constructor and Description |
---|
IcyFrame() |
IcyFrame(java.lang.String title) |
IcyFrame(java.lang.String title,
boolean resizable) |
IcyFrame(java.lang.String title,
boolean resizable,
boolean closable) |
IcyFrame(java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable) |
IcyFrame(java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable) |
IcyFrame(java.lang.String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable,
boolean waitCreate) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.awt.Component comp)
Implement add method
|
void |
add(java.awt.Component comp,
java.lang.Object constraints)
Implement add method
|
void |
add(java.lang.String name,
java.awt.Component comp)
Implement add method
|
void |
addComponentListener(java.awt.event.ComponentListener l)
Implement addComponentListener method
|
void |
addFrameListener(IcyFrameListener l)
Implement addFrameListener method
|
void |
addKeyListener(java.awt.event.KeyListener l)
Implement addKeyListener method
|
void |
addTo(java.awt.Container c)
Add to the container c
|
void |
addTo(java.awt.Container c,
int index)
Add to the container c
|
void |
addTo(java.awt.Container c,
java.lang.Object constraints)
Deprecated.
Use
addToDesktopPane() instead. |
void |
addToDesktopPane()
Add the frame to the Icy desktop pane
|
void |
addToDesktopPane(java.lang.Object constraints)
Add the frame to the Icy desktop pane with specified constraint.
|
void |
addToMainDesktopPane()
Deprecated.
Use
addToDesktopPane() instead. |
void |
attach()
Set the frame to be an inner frame on the desktop pane
|
void |
center()
Center frame on the desktop
|
void |
close()
Close frame (send closing event)
|
void |
detach()
Set the frame to be detached in an independent frame
|
void |
dispose()
Dispose frame (send closed event)
|
void |
externalize()
the frame becomes detached in an independent frame
|
static IcyFrame |
findIcyFrame(javax.swing.JInternalFrame frame)
Find IcyFrame corresponding to the specified JInternalFrame
|
void |
frameClosed(java.awt.AWTEvent e)
internal close stuff
|
javax.swing.ActionMap |
getActionMap()
Returns the content pane InputMap
|
static java.util.ArrayList<IcyFrame> |
getAllFrames()
Return all active (not closed) IcyFrame
|
static java.util.ArrayList<IcyFrame> |
getAllFrames(java.lang.Class<?> frameClass)
Return all active IcyFrame which derive from the specified class
|
javax.swing.border.Border |
getBorder() |
java.awt.Rectangle |
getBounds()
Implement getBounds method
|
java.awt.Rectangle |
getBoundsExternal()
Implement getBounds method for external frame only
|
java.awt.Rectangle |
getBoundsInternal()
Implement getBounds method for internal frame only
|
java.awt.Container |
getContentPane()
Implement getContentPane method
|
javax.swing.JMenu |
getDefaultSystemMenu()
Return the default system menu
|
javax.swing.JFrame |
getExternalFrame() |
java.awt.Container |
getFrame() |
int |
getHeight()
Implement getHeight method
|
int |
getHeightExternal()
Implement getHeight method for external frame only
|
int |
getHeightInternal()
Implement getHeight method for internal frame only
|
IcyExternalFrame |
getIcyExternalFrame() |
IcyInternalFrame |
getIcyInternalFrame() |
javax.swing.InputMap |
getInputMap(int condition)
Returns the content pane InputMap
|
javax.swing.JInternalFrame |
getInternalFrame() |
javax.swing.JMenuBar |
getJMenuBar()
Implement getJMenuBar method
|
java.awt.Point |
getLocation()
Implement getLocation method
|
java.awt.Point |
getLocationExternal()
Implement getLocation method for external frame only
|
java.awt.Point |
getLocationInternal()
Implement getLocation method
|
java.awt.Dimension |
getMaximumSize()
Implement getMaximumSize method
|
java.awt.Dimension |
getMaximumSizeExternal()
Implement getMaximumSize method for external frame only
|
java.awt.Dimension |
getMaximumSizeInternal()
Implement getMaximumSize method for internal frame only
|
java.awt.Dimension |
getMinimumSize()
Implement getMinimumSize method
|
java.awt.Dimension |
getMinimumSizeExternal()
Implement getMinimumSize method for external frame only
|
java.awt.Dimension |
getMinimumSizeInternal()
Implement getMinimumSize method for internal frame only
|
java.awt.Point |
getMousePosition()
Implement getMousePosition method
|
java.awt.Container |
getParent()
Implement getParent
|
java.awt.Dimension |
getPreferredSize()
Implement getPreferredSize method
|
java.awt.Dimension |
getPreferredSizeExternal()
Implement getPreferredSize method for external frame only
|
java.awt.Dimension |
getPreferredSizeInternal()
Implement getPreferredSize method for internal frame only
|
javax.swing.JRootPane |
getRootPane()
Implement getRootPane method
|
java.awt.Dimension |
getSize()
Implement getSize method
|
java.awt.Dimension |
getSizeExternal()
Implement getSize method for external frame only
|
java.awt.Dimension |
getSizeInternal()
Implement getSize method for internal frame only
|
icy.gui.frame.IcyFrame.SwitchStateAction |
getSwitchStateAction() |
MenuCallback |
getSystemMenuCallback() |
java.lang.String |
getTitle()
Implement setTitle method
|
boolean |
getTitleBarVisible()
Return true if title bar is visible
|
java.awt.Toolkit |
getToolkit()
Implement getToolkit method
|
java.awt.Rectangle |
getVisibleRect()
Implement getBounds method for external frame only
|
int |
getWidth()
Implement getWidth method
|
int |
getWidthExternal()
Implement getWidth method for external frame only
|
int |
getWidthInternal()
Implement getWidth method for internal frame only
|
int |
getX()
Implement getX method
|
int |
getXExternal()
Implement getX method for external frame only
|
int |
getXInternal()
Implement getX method for internal frame only
|
int |
getY()
Implement getY method
|
int |
getYExternal()
Implement getY method for external frame only
|
int |
getYInternal()
Implement getY method for internal frame only
|
boolean |
hasFocus()
Implement hasFocus method
|
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height) |
void |
internalFrameActivated(javax.swing.event.InternalFrameEvent e) |
void |
internalFrameClosed(javax.swing.event.InternalFrameEvent e) |
void |
internalFrameClosing(javax.swing.event.InternalFrameEvent e) |
void |
internalFrameDeactivated(javax.swing.event.InternalFrameEvent e) |
void |
internalFrameDeiconified(javax.swing.event.InternalFrameEvent e) |
void |
internalFrameIconified(javax.swing.event.InternalFrameEvent e) |
void |
internalFrameOpened(javax.swing.event.InternalFrameEvent e) |
void |
internalize()
set the frame to be an inner frame on the desktop pane
|
boolean |
isActive()
return true if frame is active
|
boolean |
isAlwaysOnTop()
Implement isAlwaysOnTop method (only for externalized frame)
|
boolean |
isClosable()
Implement isClosable method
|
boolean |
isExternalized()
return true if frame is in externalized state
|
boolean |
isInternalized()
return true if frame is in internalized state
|
boolean |
isMaximized()
Implement isMaximized method
|
boolean |
isMaximizedExternal()
Implement isMaximized method for external frame only
|
boolean |
isMaximizedInternal()
Implement isMaximized method for internal frame only
|
boolean |
isMinimized()
Implement isMinimized method
|
boolean |
isMinimizedExternal()
Implement isMinimized method for external frame only
|
boolean |
isMinimizedInternal()
Implement isMinimized method for internal frame only
|
boolean |
isResizable()
Implement isResizable method
|
boolean |
isSwitchStateItemVisible() |
boolean |
isSyncProcess() |
boolean |
isVisible()
Implement isVisible method
|
void |
onClosed()
easy onClosed job
|
void |
pack()
Implement pack method
|
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
void |
remove(java.awt.Component comp)
Implement remove method
|
void |
removeAll()
Implement removeAll method
|
void |
removeComponentListener(java.awt.event.ComponentListener l)
Implement removeComponentListener method
|
void |
removeFrameListener(IcyFrameListener l)
Implement removeFrameListener method
|
void |
removeFrom(java.awt.Container c)
Remove from the container
|
void |
removeFromMainDesktopPane()
Remove the frame from the main pane of ICY
|
void |
removeKeyListener(java.awt.event.KeyListener l)
Implement addKeyListener method
|
void |
repaint()
Implement repaint
|
void |
requestFocus()
Frame becomes the active/focused frame
|
void |
revalidate()
Implement revalidate
|
void |
setAlwaysOnTop(boolean alwaysOnTop)
Implement setAlwaysOnTop method (only for externalized frame)
|
void |
setBackground(java.awt.Color value)
Implement setBackground method
|
void |
setBorder(javax.swing.border.Border border)
Implement setBorder method (only for internal frame)
|
void |
setBounds(java.awt.Rectangle r)
Implement setBounds method
|
void |
setClosable(boolean value)
Implement setClosable method
|
void |
setContentPane(java.awt.Container value)
Implement setContentPane method
|
void |
setDefaultCloseOperation(int operation)
Implement setDefaultCloseOperation method
|
void |
setFocusable(boolean value)
Implement setFocusable method
|
void |
setForeground(java.awt.Color value)
Implement setForeground method
|
void |
setJMenuBar(javax.swing.JMenuBar m)
Implement setJMenuBar method
|
void |
setLayout(java.awt.LayoutManager layout)
Implement setLayout method
|
void |
setLocation(int x,
int y)
Implement setLocation method
|
void |
setLocation(java.awt.Point p)
Implement setLocation method
|
void |
setLocationExternal(int x,
int y)
Implement setLocation method for external frame only
|
void |
setLocationExternal(java.awt.Point p)
Implement setLocation method for external frame only
|
void |
setLocationInternal(int x,
int y)
Implement setLocation method for internal frame only
|
void |
setLocationInternal(java.awt.Point p)
Implement setLocation method for internal frame only
|
void |
setMaximisable(boolean value)
Implement setMaximisable method
|
void |
setMaximized(boolean value)
Implement setMaximized method
|
void |
setMaximizedExternal(boolean value)
Implement setMaximized method for external frame only
|
void |
setMaximizedInternal(boolean value)
Implement setMaximized method for internal frame only
|
void |
setMaximumSize(java.awt.Dimension d)
Implement setMaximumSize method
|
void |
setMaximumSizeExternal(java.awt.Dimension d)
Implement setMaximumSize method for external frame only
|
void |
setMaximumSizeInternal(java.awt.Dimension d)
Implement setMaximumSize method for internal frame only
|
void |
setMinimized(boolean value)
Implement setMinimized method
|
void |
setMinimizedExternal(boolean value)
Implement setMinimized method for external frame only
|
void |
setMinimizedInternal(boolean value)
Implement setMinimized method for internal frame only
|
void |
setMinimumSize(java.awt.Dimension d)
Implement setMinimumSize method
|
void |
setMinimumSizeExternal(java.awt.Dimension d)
Implement setMinimumSize method for external frame only
|
void |
setMinimumSizeInternal(java.awt.Dimension d)
Implement setMinimumSize method for internal frame only
|
void |
setPreferredSize(java.awt.Dimension d)
Implement setPreferredSize method
|
void |
setPreferredSizeExternal(java.awt.Dimension d)
Implement setPreferredSize method for external frame only
|
void |
setPreferredSizeInternal(java.awt.Dimension d)
Implement setPreferredSize method for internal frame only
|
void |
setResizable(boolean value)
Implement setResizable method
|
void |
setSize(java.awt.Dimension d)
Implement setSize method
|
void |
setSize(int width,
int height)
Implement setSize method
|
void |
setSizeExternal(java.awt.Dimension d)
Implement setSize method for external frame only
|
void |
setSizeExternal(int width,
int height)
Implement setSize method for external frame only
|
void |
setSizeInternal(java.awt.Dimension d)
Implement setSize method for internal frame only
|
void |
setSizeInternal(int width,
int height)
Implement setSize method for internal frame only
|
void |
setSwitchStateItemVisible(boolean value)
Indicate if system menu show display item to switch frame state (internal / external)
|
void |
setSyncProcess(boolean syncProcess)
By default IcyFrame does asych processing, you can force sync processing
with this property |
void |
setSystemMenuCallback(MenuCallback value)
Set the system menu callback (this allow modification of system menu)
|
void |
setTitle(java.lang.String title)
Implement setTitle method
|
void |
setTitleBarVisible(boolean value)
Hide or show the title bar (frame should not be displayable when you set this property)
|
void |
setToolTipText(java.lang.String text)
Implement setToolTipText method (only for internalized frame)
|
void |
setVisible(boolean value)
Implement setVisible method
|
void |
stateChanged()
Called on state (internalized / externalized) change
|
void |
switchState()
go from detached to attached and opposite
|
void |
toBack()
Implement toBack method
|
void |
toFront()
Implement toFront method
|
void |
updateSystemMenu()
Refresh system menu
|
void |
updateUI()
Implement updateUI
|
void |
validate()
Implement validate
|
void |
windowActivated(java.awt.event.WindowEvent e) |
void |
windowClosed(java.awt.event.WindowEvent e) |
void |
windowClosing(java.awt.event.WindowEvent e) |
void |
windowDeactivated(java.awt.event.WindowEvent e) |
void |
windowDeiconified(java.awt.event.WindowEvent e) |
void |
windowIconified(java.awt.event.WindowEvent e) |
void |
windowOpened(java.awt.event.WindowEvent e) |
public IcyFrame()
public IcyFrame(java.lang.String title)
public IcyFrame(java.lang.String title, boolean resizable)
public IcyFrame(java.lang.String title, boolean resizable, boolean closable)
public IcyFrame(java.lang.String title, boolean resizable, boolean closable, boolean maximizable)
public IcyFrame(java.lang.String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
public IcyFrame(java.lang.String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable, boolean waitCreate)
public static java.util.ArrayList<IcyFrame> getAllFrames()
public static java.util.ArrayList<IcyFrame> getAllFrames(java.lang.Class<?> frameClass)
public static IcyFrame findIcyFrame(javax.swing.JInternalFrame frame)
public void updateSystemMenu()
public void close()
public void dispose()
public void switchState()
public void internalize()
public void externalize()
public void attach()
public void detach()
public void stateChanged()
public void center()
public void addTo(java.awt.Container c)
public void addTo(java.awt.Container c, int index)
@Deprecated public void addTo(java.awt.Container c, java.lang.Object constraints)
addToDesktopPane()
instead.public void addToDesktopPane(java.lang.Object constraints)
public void addToDesktopPane()
@Deprecated public void addToMainDesktopPane()
addToDesktopPane()
instead.public void add(java.awt.Component comp)
public void add(java.awt.Component comp, java.lang.Object constraints)
public void add(java.lang.String name, java.awt.Component comp)
public void removeFrom(java.awt.Container c)
public void removeAll()
public void remove(java.awt.Component comp)
public void removeFromMainDesktopPane()
public void toFront()
public void toBack()
public void pack()
public java.awt.Container getFrame()
public IcyInternalFrame getIcyInternalFrame()
public IcyExternalFrame getIcyExternalFrame()
public javax.swing.JInternalFrame getInternalFrame()
public javax.swing.JFrame getExternalFrame()
public void setSwitchStateItemVisible(boolean value)
public MenuCallback getSystemMenuCallback()
public void setSystemMenuCallback(MenuCallback value)
value
- the systemMenuCallback to setpublic javax.swing.JMenu getDefaultSystemMenu()
public java.awt.Container getParent()
public java.awt.Container getContentPane()
public javax.swing.JRootPane getRootPane()
public javax.swing.border.Border getBorder()
public icy.gui.frame.IcyFrame.SwitchStateAction getSwitchStateAction()
public java.awt.Dimension getMinimumSize()
public java.awt.Dimension getMinimumSizeInternal()
public java.awt.Dimension getMinimumSizeExternal()
public java.awt.Dimension getMaximumSize()
public java.awt.Dimension getMaximumSizeInternal()
public java.awt.Dimension getMaximumSizeExternal()
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getPreferredSizeInternal()
public java.awt.Dimension getPreferredSizeExternal()
public java.awt.Dimension getSize()
public java.awt.Dimension getSizeInternal()
public java.awt.Dimension getSizeExternal()
public int getHeight()
public int getHeightInternal()
public int getHeightExternal()
public int getWidth()
public int getWidthInternal()
public int getWidthExternal()
public int getX()
public int getXInternal()
public int getXExternal()
public int getY()
public int getYInternal()
public int getYExternal()
public java.awt.Point getLocation()
public java.awt.Point getLocationInternal()
public java.awt.Point getLocationExternal()
public java.awt.Rectangle getBounds()
public java.awt.Rectangle getBoundsInternal()
public java.awt.Rectangle getBoundsExternal()
public java.awt.Rectangle getVisibleRect()
public javax.swing.JMenuBar getJMenuBar()
public javax.swing.InputMap getInputMap(int condition)
public javax.swing.ActionMap getActionMap()
public java.awt.Toolkit getToolkit()
public java.lang.String getTitle()
public boolean getTitleBarVisible()
public boolean isSwitchStateItemVisible()
public java.awt.Point getMousePosition()
public boolean isMinimized()
public boolean isMinimizedInternal()
public boolean isMinimizedExternal()
public boolean isMaximized()
public boolean isMaximizedInternal()
public boolean isMaximizedExternal()
public boolean isVisible()
public boolean isResizable()
public boolean isClosable()
public boolean isInternalized()
public boolean isExternalized()
public boolean isActive()
public boolean isAlwaysOnTop()
public boolean hasFocus()
public void setTitle(java.lang.String title)
public void setToolTipText(java.lang.String text)
public void setBackground(java.awt.Color value)
public void setForeground(java.awt.Color value)
public void setResizable(boolean value)
public void setLocation(java.awt.Point p)
public void setLocation(int x, int y)
public void setLocationInternal(java.awt.Point p)
public void setLocationInternal(int x, int y)
public void setLocationExternal(java.awt.Point p)
public void setLocationExternal(int x, int y)
public void setSize(java.awt.Dimension d)
public void setSize(int width, int height)
public void setSizeInternal(java.awt.Dimension d)
public void setSizeInternal(int width, int height)
public void setSizeExternal(java.awt.Dimension d)
public void setSizeExternal(int width, int height)
public void setPreferredSize(java.awt.Dimension d)
public void setPreferredSizeInternal(java.awt.Dimension d)
public void setPreferredSizeExternal(java.awt.Dimension d)
public void setMinimumSize(java.awt.Dimension d)
public void setMaximumSize(java.awt.Dimension d)
public void setMinimumSizeInternal(java.awt.Dimension d)
public void setMaximumSizeInternal(java.awt.Dimension d)
public void setMinimumSizeExternal(java.awt.Dimension d)
public void setMaximumSizeExternal(java.awt.Dimension d)
public void setBounds(java.awt.Rectangle r)
public void setMaximisable(boolean value)
public void setMinimized(boolean value)
public void setMinimizedInternal(boolean value)
public void setMinimizedExternal(boolean value)
public void setMaximized(boolean value)
public void setMaximizedInternal(boolean value)
public void setMaximizedExternal(boolean value)
public void setClosable(boolean value)
public void setDefaultCloseOperation(int operation)
JFrame.setDefaultCloseOperation(int)
public void setFocusable(boolean value)
public void setVisible(boolean value)
public void setAlwaysOnTop(boolean alwaysOnTop)
public void setJMenuBar(javax.swing.JMenuBar m)
public void setTitleBarVisible(boolean value)
public void setLayout(java.awt.LayoutManager layout)
public void setBorder(javax.swing.border.Border border)
public void setContentPane(java.awt.Container value)
public boolean isSyncProcess()
public void setSyncProcess(boolean syncProcess)
syncProcess
- the syncProcess to setpublic void requestFocus()
public void validate()
public void revalidate()
public void repaint()
public void updateUI()
public void addFrameListener(IcyFrameListener l)
public void removeFrameListener(IcyFrameListener l)
public void addComponentListener(java.awt.event.ComponentListener l)
public void removeComponentListener(java.awt.event.ComponentListener l)
public void addKeyListener(java.awt.event.KeyListener l)
public void removeKeyListener(java.awt.event.KeyListener l)
public void frameClosed(java.awt.AWTEvent e)
public void onClosed()
public void internalFrameActivated(javax.swing.event.InternalFrameEvent e)
internalFrameActivated
in interface javax.swing.event.InternalFrameListener
public void internalFrameClosed(javax.swing.event.InternalFrameEvent e)
internalFrameClosed
in interface javax.swing.event.InternalFrameListener
public void internalFrameClosing(javax.swing.event.InternalFrameEvent e)
internalFrameClosing
in interface javax.swing.event.InternalFrameListener
public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent e)
internalFrameDeactivated
in interface javax.swing.event.InternalFrameListener
public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent e)
internalFrameDeiconified
in interface javax.swing.event.InternalFrameListener
public void internalFrameIconified(javax.swing.event.InternalFrameEvent e)
internalFrameIconified
in interface javax.swing.event.InternalFrameListener
public void internalFrameOpened(javax.swing.event.InternalFrameEvent e)
internalFrameOpened
in interface javax.swing.event.InternalFrameListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
imageUpdate
in interface java.awt.image.ImageObserver
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener