Methods Summary |
---|
protected javax.swing.JComponent | createNorthPane(javax.swing.JInternalFrame w)
titlePane = new MetalInternalFrameTitlePane(w);
return titlePane;
|
public static javax.swing.plaf.ComponentUI | createUI(javax.swing.JComponent c)
return new MetalInternalFrameUI( (JInternalFrame) c);
|
protected void | installKeyboardActions()
super.installKeyboardActions();
ActionMap map = SwingUtilities.getUIActionMap(frame);
if (map != null) {
// BasicInternalFrameUI creates an action with the same name, we override
// it as Metal frames do not have system menus.
map.remove("showSystemMenu");
}
|
protected void | installListeners()
super.installListeners();
frame.addPropertyChangeListener(metalPropertyChangeListener);
|
public void | installUI(javax.swing.JComponent c)
super.installUI(c);
Object paletteProp = c.getClientProperty( IS_PALETTE );
if ( paletteProp != null ) {
setPalette( ((Boolean)paletteProp).booleanValue() );
}
Container content = frame.getContentPane();
stripContentBorder(content);
//c.setOpaque(false);
|
private void | setFrameType(java.lang.String frameType)
if ( frameType.equals( OPTION_DIALOG ) )
{
LookAndFeel.installBorder(frame, "InternalFrame.optionDialogBorder");
titlePane.setPalette( false );
}
else if ( frameType.equals( PALETTE_FRAME ) )
{
LookAndFeel.installBorder(frame, "InternalFrame.paletteBorder");
titlePane.setPalette( true );
}
else
{
LookAndFeel.installBorder(frame, "InternalFrame.border");
titlePane.setPalette( false );
}
|
public void | setPalette(boolean isPalette)
if (isPalette) {
LookAndFeel.installBorder(frame, "InternalFrame.paletteBorder");
} else {
LookAndFeel.installBorder(frame, "InternalFrame.border");
}
titlePane.setPalette(isPalette);
|
private void | stripContentBorder(java.lang.Object c)
if ( c instanceof JComponent ) {
JComponent contentComp = (JComponent)c;
Border contentBorder = contentComp.getBorder();
if (contentBorder == null || contentBorder instanceof UIResource) {
contentComp.setBorder( handyEmptyBorder );
}
}
|
protected void | uninstallComponents()
titlePane = null;
super.uninstallComponents();
|
protected void | uninstallKeyboardActions()
super.uninstallKeyboardActions();
|
protected void | uninstallListeners()
frame.removePropertyChangeListener(metalPropertyChangeListener);
super.uninstallListeners();
|
public void | uninstallUI(javax.swing.JComponent c)
frame = (JInternalFrame)c;
Container cont = ((JInternalFrame)(c)).getContentPane();
if (cont instanceof JComponent) {
JComponent content = (JComponent)cont;
if ( content.getBorder() == handyEmptyBorder) {
content.setBorder(null);
}
}
super.uninstallUI(c);
|