MDateSelector

mseries.plaf.Mac
Class MacDateEntryUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by mseries.plaf.basic.BasicDateEntryUI
          extended by mseries.plaf.Mac.MacDateEntryUI
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class MacDateEntryUI
extends BasicDateEntryUI


Nested Class Summary
 
Nested classes/interfaces inherited from class mseries.plaf.basic.BasicDateEntryUI
BasicDateEntryUI.CancelAction, BasicDateEntryUI.CloseAction, BasicDateEntryUI.OpenAction, BasicDateEntryUI.OpenCloseAction
 
Field Summary
 
Fields inherited from class mseries.plaf.basic.BasicDateEntryUI
arrowButton, dateEntry
 
Constructor Summary
MacDateEntryUI()
           
 
Method Summary
protected  void configureBorder(JComponent c)
          This is where we add a border the component, (the display field and the button)
 void configureDisplay(JComponent display)
          This is where we would configure the display field part of the component, such as remove the dfault border and change preferred size.
protected  JButton createArrowButton()
          Creates the arrow button.
static ComponentUI createUI(JComponent x)
          This method is called by the UIManager to get an instance of this class and must be overridden in subclasses.
 void uninstallUI(JComponent c)
           
 
Methods inherited from class mseries.plaf.basic.BasicDateEntryUI
createActionListener, createAncestorListener, createLayoutManager, createMDateSelectorPanel, createMMonthListener, createMouseListener, getInsets, installComponents, installListeners, installUI, paint, propertyChange, registerKeyboardActions, uninstallComponents, uninstallListeners, unRegisterKeyboardActions, update
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacDateEntryUI

public MacDateEntryUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent x)
This method is called by the UIManager to get an instance of this class and must be overridden in subclasses.


configureDisplay

public void configureDisplay(JComponent display)
Description copied from class: BasicDateEntryUI
This is where we would configure the display field part of the component, such as remove the dfault border and change preferred size.

Overrides:
configureDisplay in class BasicDateEntryUI
Parameters:
display - the display part of the component

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class BasicDateEntryUI

configureBorder

protected void configureBorder(JComponent c)
Description copied from class: BasicDateEntryUI
This is where we add a border the component, (the display field and the button)

Overrides:
configureBorder in class BasicDateEntryUI
Parameters:
c - the entire component

createArrowButton

protected JButton createArrowButton()
Description copied from class: BasicDateEntryUI
Creates the arrow button. Subclasses can create any button they like. The default behavior of this class is to attach various listeners to the button returned by this method. Returns an instance of BasicArrowButton.

Overrides:
createArrowButton in class BasicDateEntryUI

MDateSelector

Copyright © 2001-2007 M Newstead. All Rights Reserved.