|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SComponent
org.wings.SContainer
org.wingx.XCalendar
public class XCalendar
| Field Summary | |
|---|---|
static SIcon |
DEFAULT_EDIT_ICON
The XCalendar default SIcon for editing. |
protected boolean |
epochCheckEnabled
|
| Fields inherited from class org.wings.SComponent |
|---|
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME |
| Constructor Summary | |
|---|---|
XCalendar()
Creates a XCalendar with the current Date and a default SDateFormatter. |
|
XCalendar(Date date,
SDateFormatter formatter)
Creates a XCalendar with the given Date and the specified SDateFormatter
instance. |
|
XCalendar(SDateFormatter formatter)
Creates a XCalendar with the current Date and the specified SDateFormatter
instance. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener listener)
Adds an action listener to the XCalendar |
void |
changedUpdate(SDocumentEvent e)
Gives notification that an attribute or set of attributes changed for styled documents. |
protected void |
fireActionPerformed(ActionEvent event)
Fire an ActionEvent at each registered listener. |
void |
fireIntermediateEvents()
fire events which describes a "in progress" state change, like TreeWillExpand, or ListSelectionEvent with getIsAdjusting() true, ... |
ActionListener[] |
getActionListeners()
Returns an array of all the ActionListeners added
to this AbstractButton with addActionListener(). |
SIcon |
getClearIcon()
Deprecated. Returns now the DEFAULT_EDIT_ICON |
Date |
getDate()
Returns the current Date. |
SIcon |
getEditIcon()
Returns the current SIcon to start the date picker. |
SFormattedTextField |
getFormattedTextField()
Returns the current SFormattedTextField. |
SIcon |
getIcon()
Deprecated. Use editIcon instead |
TimeZone |
getTimeZone()
Returns the current TimeZone. |
void |
insertUpdate(SDocumentEvent e)
Gives notification that there was an insert into the document. |
boolean |
isEpochCheckEnabled()
Asks the low-level event listener if epoch checking should be perfomed on it. |
boolean |
isNullable()
Deprecated. |
void |
processLowLevelEvent(String action,
String[] values)
Deliver low level/http events (parameters). |
void |
removeActionListener(ActionListener listener)
Removes the supplied Listener from the listener list |
void |
removeUpdate(SDocumentEvent e)
Gives notification that a portion of the document has been removed. |
void |
setCG(CalendarCG cg)
Set the look and feel delegate for this component |
void |
setClearIcon(SIcon clearIcon)
Deprecated. |
void |
setDate(Date date)
Sets the current Date. |
void |
setEditIcon(SIcon icon)
Sets the icon to use for calling the date picker. |
void |
setEpochCheckEnabled(boolean epochCheckEnabled)
|
void |
setFocusTraversalIndex(int index)
The index in which the focus is traversed using Tab. |
void |
setFormatter(SDateFormatter formatter)
Sets the current SDateFormatter. |
void |
setIcon(SIcon icon)
Deprecated. Use editIcon instead |
void |
setNullable(boolean nullable)
Deprecated. |
void |
setPreferredSize(SDimension dimension)
Set the preferred size of the component |
void |
setTimeZone(TimeZone timeZone)
Sets the current TimeZone. |
| Methods inherited from class org.wings.SContainer |
|---|
add, add, add, add, addComponent, addComponent, addComponent, addComponent, addContainerListener, addNotify, clone, fireContainerEvent, getComponent, getComponentCount, getComponentList, getComponents, getConstraintAt, getConstraintList, getLayout, invite, inviteEachComponent, isShowingChildren, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setCG, setLayout, setParentFrame, updateCG |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.wings.LowLevelEventListener |
|---|
fireFinalEvents, getLowLevelEventId, getName, isEnabled |
| Field Detail |
|---|
public static final SIcon DEFAULT_EDIT_ICON
XCalendar default SIcon for editing.
protected boolean epochCheckEnabled
LowLevelEventListener.isEpochCheckEnabled()| Constructor Detail |
|---|
public XCalendar()
XCalendar with the current Date and a default SDateFormatter.
public XCalendar(SDateFormatter formatter)
XCalendar with the current Date and the specified SDateFormatter
instance.
formatter - SDateFormatter to use for formatting.
public XCalendar(Date date,
SDateFormatter formatter)
XCalendar with the given Date and the specified SDateFormatter
instance.
date - Dateformatter - SDateFormatter to use for formatting.| Method Detail |
|---|
public void setCG(CalendarCG cg)
cg - the component's cgSComponent.setCG(org.wings.plaf.ComponentCG)public void setIcon(SIcon icon)
editIcon instead
XCalendar's default SIcon.
icon - the icon used as the default image.public SIcon getIcon()
editIcon instead
SIcon.
SIconpublic void setEditIcon(SIcon icon)
icon - the icon used as the trigger icon to start the date picker.public SIcon getEditIcon()
SIcon to start the date picker.
SIconpublic SIcon getClearIcon()
public void setClearIcon(SIcon clearIcon)
clearIcon - The new icon to use for clearing the input/ date.public boolean isNullable()
NOTE: He can always do this manually. Default is false
true if the user has an clear icon to define a null datepublic void setNullable(boolean nullable)
null.
nullable - true if the user should be able to clear the date.public void setFormatter(SDateFormatter formatter)
SDateFormatter.
formatter - SDateFormatter to use for formattingpublic void setTimeZone(TimeZone timeZone)
TimeZone.
timeZone - TimeZonepublic TimeZone getTimeZone()
TimeZone.
TimeZonepublic Date getDate()
Date.
Datepublic void setDate(Date date)
Date.
date - the current Datepublic void setPreferredSize(SDimension dimension)
setPreferredSize in class SComponentdimension - SDimensionSComponent.getPreferredSize()protected void fireActionPerformed(ActionEvent event)
ActionEvent at each registered listener.
event - supplied ActionEventpublic void addActionListener(ActionListener listener)
XCalendar
listener - the ActionListener to be addedpublic void removeActionListener(ActionListener listener)
listener - ActionListenerpublic ActionListener[] getActionListeners()
ActionListeners added
to this AbstractButton with addActionListener().
ActionListeners added or an empty
array if no listeners have been addedpublic SFormattedTextField getFormattedTextField()
SFormattedTextField.
SFormattedTextFieldpublic void setFocusTraversalIndex(int index)
SComponent
setFocusTraversalIndex in class SComponentindex - the focus traversal index. Pressing the focus traversal
key (usually TAB) in the browser jumps to the next index.
Must not be zero.public void insertUpdate(SDocumentEvent e)
SDocumentListener
insertUpdate in interface SDocumentListenere - the document eventSDocumentListener#insertUpdate()public void removeUpdate(SDocumentEvent e)
SDocumentListener
removeUpdate in interface SDocumentListenere - the document eventSDocumentListener#removeUpdate()public void changedUpdate(SDocumentEvent e)
SDocumentListenerNOTE: This is for swing compatibility. Currently you will not receive this event at any time inside web contexts!
changedUpdate in interface SDocumentListenere - the document eventSDocumentListener#changedUpdate()public boolean isEpochCheckEnabled()
LowLevelEventListenertrue the Dispatcher will ignore request originating from old views
(typically iniated by triggering browser back and clicking somewhere.)
isEpochCheckEnabled in interface LowLevelEventListenertrue if epoch checking should be perfomed, false
if all request for this component should be processed.LowLevelEventListener.isEpochCheckEnabled()public void setEpochCheckEnabled(boolean epochCheckEnabled)
LowLevelEventListener#setEpochCheckEnabled()public void fireIntermediateEvents()
LowLevelEventListener
fireIntermediateEvents in interface LowLevelEventListenerLowLevelEventListener.fireIntermediateEvents()
public void processLowLevelEvent(String action,
String[] values)
LowLevelEventListener
processLowLevelEvent in interface LowLevelEventListenerprocessLowLevelEvent in class SComponentaction - the name-value-pair's namevalues - the name-value-pair's valuesLowLevelEventListener.processLowLevelEvent(String action, String[] values)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||