|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JInternalFrame
|
+--org.jscroll.widgets.JScrollInternalFrame
This class provides a custom internal frame. Each internal frame
is assigned an associated toggle button and an optional radio button
menu item. These buttons reside in the
DesktopResizableToolBar and
DesktopMenu.
classes respectively.
| Field Summary |
| Fields inherited from class javax.swing.JInternalFrame |
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JScrollInternalFrame()
constructor provided for compatibility with JInternalFrame |
|
JScrollInternalFrame(String title,
ImageIcon icon,
JPanel frameContents,
boolean isClosable)
creates the JScrollInternalFrame |
|
| Method Summary | |
void |
addNotify()
saves the size of the current internal frame for those frames whose initial width and heights have not been set. |
JToggleButton |
getAssociatedButton()
returns the associated toggle button |
JRadioButtonMenuItem |
getAssociatedMenuButton()
returns the associated menu button |
Dimension |
getInitialDimensions()
returns the initial dimensions of this internal frame. |
void |
saveSize()
tell the frame to save its size for later restoration |
void |
selectFrameAndAssociatedButtons()
selects the current frame, along with any toggle and menu buttons that may be associated with it |
void |
setAssociatedButton(JToggleButton associatedButton)
sets the associated toggle button |
void |
setAssociatedMenuButton(JRadioButtonMenuItem associatedMenuButton)
sets the associated menu button |
String |
toString()
returns the toString() representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JScrollInternalFrame(String title,
ImageIcon icon,
JPanel frameContents,
boolean isClosable)
title - the string displayed in the title bar of the internal frameicon - the ImageIcon displayed in the title bar of the internal frameframeContents - the contents of the internal frameisClosable - determines whether the frame is closablepublic JScrollInternalFrame()
| Method Detail |
public void saveSize()
public void setAssociatedMenuButton(JRadioButtonMenuItem associatedMenuButton)
associatedMenuButton - the menu button to associate with
the internal framepublic JRadioButtonMenuItem getAssociatedMenuButton()
public void setAssociatedButton(JToggleButton associatedButton)
associatedButton - the toggle button to associate with
the internal framepublic JToggleButton getAssociatedButton()
public Dimension getInitialDimensions()
FramePositioning.
public String toString()
toString in class Componentpublic void selectFrameAndAssociatedButtons()
public void addNotify()
addNotify in class JComponent
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||