| |
|
| java.lang.Object org.apache.harmony.x.swing.TitlePaneInternals
TitlePaneInternals | final public class TitlePaneInternals (Code) | | This class contains properties that are common for all title panes,
for example: BasicInternalFrameTitlePane, MetalInternalFrameTitlePane,
MetalRootPaneTitlePane .
|
Field Summary | |
public Rectangle | decorationR Rectangle which represents the bounds of the title decoration area. | public int | gapX The gap between title pane components (hardcoded). | public boolean | hasMenuBar Keeps if the associated frame has menubar or not. |
decorationR | public Rectangle decorationR(Code) | | Rectangle which represents the bounds of the title decoration area.
|
gapX | public int gapX(Code) | | The gap between title pane components (hardcoded).
This value of the gap is for BasicInternalFrameTitlePane.
|
hasMenuBar | public boolean hasMenuBar(Code) | | Keeps if the associated frame has menubar or not.
|
TitlePaneInternals | public TitlePaneInternals(JInternalFrame internalFrame)(Code) | | Consctucts TitlePaneInternals and connects it to the specified frame.
Parameters: internalFrame - internals are connected to |
createMenuItem | public static JMenuItem createMenuItem(Action action, String text, int mnemonic)(Code) | | Creates the menu item for the specified system menu.
Parameters: action - Action of the creating item Parameters: text - String representing item label Parameters: mnemonic - int value representing item mnemonic or -1 if no mnemonic should be used JMenuItem created for the frame system menu |
getFrameIcon | public Icon getFrameIcon()(Code) | | Gets frame icon.
Icon used for the connected frame |
getUIFrameIcon | public Icon getUIFrameIcon()(Code) | | Retrieves icon set to the frame by its L&F.
Icon installed by L&F |
getWindowTitle | public String getWindowTitle()(Code) | | Retrieves title information of the connected frame.
Frame title |
isSelected | public boolean isSelected()(Code) | | Determines is the frame is active (activated if the frame is top-level or selected for internal frames).
true if the connected frame is active; false otherwise |
setFrameIcon | public void setFrameIcon(Icon icon)(Code) | | Stores frame icon. For the user-defined icon its sizes are scaled to the
frame icon sizes.
Parameters: icon - Icon to be used for the frame |
setWindow | public void setWindow(Window window)(Code) | | Sets the connected window (for top-level windows only).
Parameters: window - Window internals to be connected to |
setWindowMenu | public void setWindowMenu(JMenu menu)(Code) | | Sets system menu used for the connected frame.
Parameters: menu - JMenu to be used for the connected frame |
|
|
|