All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.DateBox
java.lang.Object
|
+----com.bulletproof.gui.Component
|
+----com.bulletproof.gui.DateBox
- public class DateBox
- extends Component
- implements ActionListener
DateBox is a component that implements a date pulldown.
-
ampm
-
-
textField
-
-
time
-
-
DateBox()
- Constructs a new DateBox.
-
DateBox(String)
- Constructs a new DateBox initialized with the specified text date.
-
DateBox(String, int)
- Constructs a new DateBox initialized with the specified text date.
-
actionPerformed(ActionEvent)
-
-
addActionListener(ActionListener)
-
-
displayPopup()
-
-
getCaretPosition()
- Returns the position of the text insertion caret for the
DateBox component.
-
getDate()
- Get the currently displayed date.
-
getMinimumSize()
- Gets the minimum size of this component.
-
getSelectedText()
- Returns the current selected text value this DateBox
-
getSelectionEnd()
- Returns the selected DateBox's end position.
-
getSelectionStart()
- Returns the selected DateBox's end position.
-
getText()
- Returns the current text value this TextField
-
getTimeVisible()
- Get whether the time is being displayed
-
isEditable()
- Returns the boolean indicating whether this DateBox is
editable or not.
-
paint(Graphics)
-
Paints the component.
-
processFocusEvent(FocusEvent)
-
Processes focus events occurring on this component by
dispatching them to any registered FocusListener objects.
-
processKeyEvent(KeyEvent)
-
Processes key events occurring on this component by
dispatching them to any registered KeyListener objects.
-
processMouseEvent(MouseEvent)
-
Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
-
removeActionListener(ActionListener)
-
-
select(int, int)
- Sets the new selected text value this DateBox
-
setCaretPosition(int)
- Sets the position of the text insertion caret for the DateBox
-
setDate(Date)
- Set the currently displayed date.
-
setEditable(boolean)
- Sets the specified boolean to indicate whether or not this
TextComponent should be editable.
-
setText(String)
- Sets the new text value this TextField
-
setTextNoRepaint(String)
- Sets the new text value this TextField
-
setTimeVisible(boolean)
- Set whether the time should be displayed along side the date
-
validate()
-
Ensures that a component has a valid layout.
textField
public TextField textField
time
public TextField time
ampm
public Choice ampm
DateBox
public DateBox()
- Constructs a new DateBox.
DateBox
public DateBox(String date)
- Constructs a new DateBox initialized with the specified text date.
- Parameters:
- text - the text to be displayed
DateBox
public DateBox(String date,
int minWidth)
- Constructs a new DateBox initialized with the specified text date.
- Parameters:
- text - the text to be displayed
- minWidth - the minimum width in pixels of this DateBox
addActionListener
public void addActionListener(ActionListener al)
removeActionListener
public void removeActionListener(ActionListener al)
setTimeVisible
public void setTimeVisible(boolean vis)
- Set whether the time should be displayed along side the date
- Parameters:
- vis - whether the time should be displayed along side the date
getTimeVisible
public boolean getTimeVisible()
- Get whether the time is being displayed
- Returns:
- whether the time is being displayed along side the date
getText
public String getText()
- Returns the current text value this TextField
- Returns:
- the current text value this TextField
setText
public void setText(String s)
- Sets the new text value this TextField
- Parameters:
- the - new text value this TextField
setTextNoRepaint
public void setTextNoRepaint(String s)
- Sets the new text value this TextField
- Parameters:
- the - new text value this TextField
setDate
public void setDate(Date date)
- Set the currently displayed date.
- Parameters:
- date - the current date to select.
getDate
public Date getDate()
- Get the currently displayed date.
- Returns:
- the currently displayed date.
getSelectedText
public String getSelectedText()
- Returns the current selected text value this DateBox
- Returns:
- the current selected text value this DateBox
getSelectionStart
public int getSelectionStart()
- Returns the selected DateBox's end position.
getSelectionEnd
public int getSelectionEnd()
- Returns the selected DateBox's end position.
setCaretPosition
public void setCaretPosition(int position)
- Sets the position of the text insertion caret for the DateBox
- Parameters:
- position - the position
getCaretPosition
public int getCaretPosition()
- Returns the position of the text insertion caret for the
DateBox component.
- Returns:
- the position of the text insertion caret for the text component.
select
public void select(int s0,
int s1)
- Sets the new selected text value this DateBox
- Parameters:
- the - new selected text from value this DateBox
- the - new selected text to value this DateBox
isEditable
public boolean isEditable()
- Returns the boolean indicating whether this DateBox is
editable or not.
- See Also:
- setEditable
setEditable
public synchronized void setEditable(boolean b)
- Sets the specified boolean to indicate whether or not this
TextComponent should be editable.
- Parameters:
- b - the boolean to be set
- See Also:
- isEditable
validate
public void validate()
- Ensures that a component has a valid layout.
- Overrides:
- validate in class Component
paint
public synchronized void paint(Graphics g)
- Paints the component.
- Overrides:
- paint in class Component
processKeyEvent
public synchronized void processKeyEvent(KeyEvent ke)
- Processes key events occurring on this component by
dispatching them to any registered KeyListener objects.
- Overrides:
- processKeyEvent in class Component
processMouseEvent
public synchronized void processMouseEvent(MouseEvent me)
- Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
- Overrides:
- processMouseEvent in class Component
processFocusEvent
public synchronized void processFocusEvent(FocusEvent fe)
- Processes focus events occurring on this component by
dispatching them to any registered FocusListener objects.
- Overrides:
- processFocusEvent in class Component
actionPerformed
public void actionPerformed(ActionEvent e)
displayPopup
public void displayPopup()
getMinimumSize
public Dimension getMinimumSize()
- Gets the minimum size of this component.
- Overrides:
- getMinimumSize in class Component
All Packages Class Hierarchy This Package Previous Next Index