public class JSLFrame extends Object
JSLDesktop
,
JSLWindowMenu
,
JInternalFrame
,
JFrame
Constructor and Description |
---|
JSLFrame()
Creates a non-resizable, non-closable, non-maximizable, non-iconifiable
JSLFrame with no title.
|
JSLFrame(String title)
create a resizable, closable, maximizable, and iconifiable frame with
toolbar.
|
JSLFrame(String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable)
Creates a JSLFrame with the specified title, resizability, closability,
maximizability, and iconifiability.
|
Modifier and Type | Method and Description |
---|---|
void |
addFocusListener(FocusListener l)
Adds the specified focus listener to receive focus events from this
component when this component gains input focus.
|
void |
addJSLFrameListener(JSLFrameListener l)
Adds the specified listener to receive frame events from this frame.
|
boolean |
canImport(DataFlavor[] flavors) |
void |
dispose()
Makes this frame invisible, unselected, and closed.
|
protected AppConfig |
getAppConfig() |
Container |
getContentPane()
Returns the content pane for this internal frame.
|
JFrame |
getJFrame()
Returns JFrame object.
|
JInternalFrame |
getJInternalFrame()
Returns JInternalFrame object.
|
JSLFrameListener[] |
getJSLFrameListeners()
Returns an array of all the JSLFrameListener added to this frame with
addJSLFrameListener.
|
Dimension |
getMinimumSize()
If the minimum size has been set to a non-null value just returns it.
|
Dimension |
getSize()
Returns the size of this component in the form of a Dimension object.
|
Dimension |
getSize(Dimension rv)
Stores the width/height of this component into "return value" rv and
returns rv.
|
String |
getTitle()
Returns the title of the frame.
|
int |
getX()
Returns the current x coordinate of the components origin.
|
int |
getY()
Returns the current y coordinate of the components origin.
|
boolean |
isClosing()
Returns whether this Window is closing.
|
boolean |
isIcon()
Returns whether this Window is iconified.
|
boolean |
isSelected()
Returns whether the frame is the currently "selected" or active frame.
|
boolean |
isVisible()
Determines whether this component should be visible when its parent is
visible.
|
void |
moveToDefaultLocation()
Move the frame to default location.
|
void |
moveToFront()
Convenience method that moves this component to position 0 if its parent
is a JLayeredPane.
|
void |
pack()
Causes subcomponents of this frame to be laid out at their preferred
size.
|
void |
removeJSLFrameListener(JSLFrameListener l)
Removes the specified frame listener so that it no longer receives frame
events from this frame.
|
void |
repaint()
Repaints this component.
|
void |
setClosed(boolean b)
Closes this internal frame if the argument is true.
|
void |
setJMenuBar(JMenuBar m)
Sets the menuBar property for this JInternalFrame.
|
void |
setLocation(int x,
int y)
Moves this component to a new location.
|
void |
setLocation(Point p)
Moves this component to a new location.
|
void |
setSelected(boolean b)
Selects or deselects the frame if it's showing.
|
void |
setSize(int w,
int h)
Resizes this component so that it has width width and height height.
|
void |
setTitle(String title)
Sets the frame title.
|
void |
setVisible(boolean b)
Shows or hides this component depending on the value of parameter b.
|
public JSLFrame()
public JSLFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
public JSLFrame(String title)
public void moveToFront()
public void setSelected(boolean b) throws PropertyVetoException
PropertyVetoException
public void setClosed(boolean b) throws PropertyVetoException
PropertyVetoException
public Dimension getMinimumSize()
public Container getContentPane()
public void setTitle(String title)
public void repaint()
public String getTitle()
public void addFocusListener(FocusListener l)
public void setSize(int w, int h)
public Dimension getSize()
public Dimension getSize(Dimension rv)
public void setLocation(int x, int y)
public void setLocation(Point p)
public void setVisible(boolean b)
public boolean isVisible()
public void pack()
public void dispose()
public int getX()
public int getY()
public boolean isSelected()
public boolean isIcon()
public boolean isClosing()
public void addJSLFrameListener(JSLFrameListener l)
public JSLFrameListener[] getJSLFrameListeners()
public void removeJSLFrameListener(JSLFrameListener l)
public void setJMenuBar(JMenuBar m)
public void moveToDefaultLocation()
public boolean canImport(DataFlavor[] flavors)
public JFrame getJFrame()
public JInternalFrame getJInternalFrame()
protected AppConfig getAppConfig()
Copyright © 2014. All Rights Reserved.