|
MDateSelector | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
mseries.plaf.basic.BasicDateEntryUI
public class BasicDateEntryUI
| Nested Class Summary | |
|---|---|
protected class |
BasicDateEntryUI.CancelAction
|
protected class |
BasicDateEntryUI.CloseAction
|
protected class |
BasicDateEntryUI.OpenAction
|
protected class |
BasicDateEntryUI.OpenCloseAction
Class to encapsulate the open and close action, activated by the button and keyboard keys |
| Field Summary | |
|---|---|
protected JButton |
arrowButton
|
protected MDateEntryField |
dateEntry
|
| Constructor Summary | |
|---|---|
BasicDateEntryUI()
|
|
| 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 Action |
createActionListener()
|
protected AncestorListener |
createAncestorListener()
Deals with the components ancestor being moved & removed, especially for when the component is used in an Applet & the browser is closed. |
protected JButton |
createArrowButton()
Creates the arrow button. |
protected LayoutManager |
createLayoutManager()
Creates the standard combo box layout manager that has the arrow button to the right and the editor to the left. |
protected MDateSelectorPanel |
createMDateSelectorPanel()
|
protected MMonthListener |
createMMonthListener()
|
protected MouseListener |
createMouseListener()
|
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. |
protected Insets |
getInsets()
Gets the insets from the JComboBox. |
protected void |
installComponents()
The editor and arrow button are added to the JComboBox here. |
protected void |
installListeners()
|
void |
installUI(JComponent c)
|
void |
paint(Graphics g,
JComponent c)
|
void |
propertyChange(PropertyChangeEvent evt)
|
protected void |
registerKeyboardActions()
|
protected void |
uninstallComponents()
|
protected void |
uninstallListeners()
|
void |
uninstallUI(JComponent c)
|
protected void |
unRegisterKeyboardActions()
|
void |
update(Graphics g,
JComponent c)
|
| 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 |
| Field Detail |
|---|
protected JButton arrowButton
protected MDateEntryField dateEntry
| Constructor Detail |
|---|
public BasicDateEntryUI()
| Method Detail |
|---|
public static ComponentUI createUI(JComponent x)
public void installUI(JComponent c)
installUI in class ComponentUIpublic void uninstallUI(JComponent c)
uninstallUI in class ComponentUI
public void update(Graphics g,
JComponent c)
update in class ComponentUI
public void paint(Graphics g,
JComponent c)
paint in class ComponentUIprotected void installListeners()
protected void uninstallListeners()
protected LayoutManager createLayoutManager()
protected void installComponents()
protected void uninstallComponents()
protected JButton createArrowButton()
protected Insets getInsets()
protected void configureBorder(JComponent c)
c - the entire componentpublic void configureDisplay(JComponent display)
display - the display part of the componentprotected Action createActionListener()
protected MouseListener createMouseListener()
protected void registerKeyboardActions()
protected void unRegisterKeyboardActions()
protected MDateSelectorPanel createMDateSelectorPanel()
protected MMonthListener createMMonthListener()
protected AncestorListener createAncestorListener()
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListener
|
MDateSelector | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||