|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E12046-04 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |
org.ecmascript.object.Object | +--oracle.adf.view.js.base.AdfObject | +--oracle.adf.view.js.base.AdfUIPeer | +--oracle.adf.view.js.laf.rich.AdfRichUIPeer | +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlChooseDatePeer
public class AdfDhtmlChooseDatePeer extends AdfRichUIPeer
Field Summary |
|
---|---|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
public static Object |
|
private static Object |
|
public static Object |
|
public static Object |
|
private static Object |
|
private static Object |
Fields inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer |
addComponentPropertyChanges, addComponentPropertyGetters, BUSY_STYLECLASS, DISABLED_STYLECLASS, DRAG_SOURCE_STYLECLASS, DROP_TARGET_STYLECLASS, HOVER_TARGET_STYLECLASS, READONLY_STYLECLASS |
Fields inherited from oracle.adf.view.js.base.AdfObject |
constructor, superclass |
Fields inherited from org.ecmascript.object.Object |
prototype |
Constructor Summary |
|
---|---|
public |
Method Summary |
|
---|---|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
private Object |
|
public Object |
|
private Object |
|
protected Object |
|
protected static Object |
|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
public Object |
|
Methods inherited from oracle.adf.view.js.base.AdfUIPeer |
getDefaultDragRecognizer, getParentPeer, initiateDrag, isVisible, needsResizeNotify |
Methods inherited from oracle.adf.view.js.base.AdfObject |
adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString |
Field Detail |
---|
private static Object _AMPM_ID
private static Object _CAL_GRID_ID
private static Object _CHOOSE_MONTH_ID
private static Object _CHOOSE_MONTH_ID_ATTR_NAME
private static Object _CHOOSE_YEAR_ID_ATTR_NAME
private static Object _CURRDAY_ID_ATTR_NAME
private static Object _CURRMONTH_ID_ATTR_NAME
private static Object _CURRYEAR_ID_ATTR_NAME
private static Object _DAY_ID_ATTR_NAME
private static Object _DISABLED_STYLE_CLASS
private static Object _HOUR_SPIN_ID
private static Object _LEAD_ZERO
private static Object _MIN_SPIN_ID
private static Object _NEXT_MONTH_ID
private static Object _PARENT_ID
private static Object _PREV_MONTH_ID
private static Object _SEC_SPIN_ID
private static Object _SEL_DAY_CLASS
public static Object SELECTED_DATE
private static Object _TIMEZONE_ID
public static Object TIMEZONE_SEL_DISPLAY
public static Object TIMEZONE_SEL_ID
private static Object _YEAR_SPIN_ID
private static Object _YEAR_SPIN_ID_ATTR_NAME
Constructor Detail |
---|
public AdfDhtmlChooseDatePeer()
Method Detail |
---|
private Object _getCurrentSelection(Object clearStyle)
clearStyle |
- | Whether to clear out the style on the previous selection |
Object
- If there is a date selected in the grid, returns DOM node of its
Searches for the last date selected on the grid and returns its DOM node - If clearStyle is true, clears the style class which marks it as selected |
private Object _getGridElement()
Object
private Object _getSelectedDateTime(Object dayNode)
dayNode |
- | DOM element that user selected |
Object
- A Javascript Date object corresponding to the selections in the chooseDate, WITHOUT timezone offsets - Reads the various display components if present (year, month, day, hour, minute, second, am/pm, timezone) and constructs a Javascript Date object representing it - If the dayNode is passed in, e.g from onclick event, directly uses that node's value. Otherwise it will walk the grid looking for current selection (slower). If user has made no selection, use the selected date which calendar was rendered with. - Any unspecified date-time components will default to Javascript Date defaults, e.g. midnight for hour, minute, secondprivate Object _handleArrowKeys(Object keyCode,
Object tdcell)
keyCode |
- | Virtual KeyCode, e.g. ARROWKEY_UP |
tdcell |
Object
- true if it successfully focused on a date in the calendar gridprotected Object HandleComponentClick(Object componentEvent)
componentEvent |
- | Click event Turns component-level clicks into Action events, e.g. - User clicks on date in grid - User clicks on previous/next month arrows |
Object
protected Object HandleComponentKeyDown(Object componentEvent)
componentEvent |
- | Key Up event - Implement arrow key support for ChooseDate. Need to cancel the event here, instead of keyUp, to avoid bonus scrolling (see 5926696) |
Object
protected Object HandleComponentKeyUp(Object componentEvent)
componentEvent |
- | Key Up event - Implement keyboard support for ChooseDate, e.g. Enter to select a date |
Object
protected Object HandleComponentValueChange(Object componentEvent)
componentEvent |
- | ValueChangeEvent from a child within the chooseDate This occurs when a change has occured in a child component of the chooseDat.e Checks the source, and handles accordingly by calling the HandleMonthChange or HandleYearChange method. |
Object
private Object _handleMonthChange(Object componentEvent)
componentEvent |
- | Event through which selection was made, e.g. click or key down - Use the component's client Id to find the parent chooseDate - Get the month dropdown value and queue event on chooseDate peer for PPR update |
Object
public Object handleUpdateFromInputComponent(Object chooseComponent,
Object propertyName,
Object newValue)
chooseComponent |
- | the choose component to updaadte |
propertyName |
- | the name of the property to update. |
newValue |
- | the new value of the property. Called when: - User clicks on an inputDate and then on its inline chooseDate (binding the chooseDate to that inputdate) - A chooseDate is bound, and the inputDate is updated |
Object
private Object _handleYearChange(Object componentEvent)
componentEvent |
- | Event through which selection was made, e.g. mouse click - Use the component's client Id to find the parent chooseDate - Get the year spinbox value and queue event on chooseDate peer for PPR update |
Object
protected Object InitDomElement(Object component,
Object domElement)
component |
- | The ChooseDate component |
domElement |
- | The ChooseDate's domElement being initialized. - Stash attributes for chooseMonth select dropdown and chooseYear spinbox |
Object
AdfRichUIPeer.InitDomElement(AdfUIComponent, Object)
protected static Object InitSubclass()
Object
private Object _isInCalendarGrid(Object node)
node |
- | DOM node representing | to test if it is a day in the calendar |
Object
- true if it is a day in the gridprivate Object _isInDialog()
Object
private Object _manipulateMonthValue(Object component,
Object increment)
component |
- | ChooseDate client component being modified |
increment |
- | Whether to advance the month or decrement it. - Increases or decreases the month, depending on value of 'increment' argument - Sends PPR to server to update the chooseDate value |
Object
private Object _queueEvent(Object component,
Object month,
Object year)
component |
- | ChooseDate component being updated |
month |
- | New month value to update chooseDate component with, ranges from 0 to 11 |
year |
- | New year value to update chooseDate component with, should be the full year (javascript Date.getYear() returns partial year, see http://www.quirksmode.org/js/introdate.html#year Send the choosedate value to the server. |
Object
private Object _selectDateInGrid(Object tdcell,
Object component,
Object updateInput)
tdcell |
- | DOM element for the table cell representing a day in the chooseDate | |
component |
- | ChooseDate component being updated | |
updateInput |
- | Updates the parent inputDate if true - Takes a | element and submits its date value to parent Input. If the cell is disabled, do nothing. If enabled, updates the style class for the selected cell and updates parent inputDate. |
Object
public Object submitValueToInput(Object dayNode,
Object chooseDateComp)
dayNode |
- | DOM node representing a day in the calendar grid, whose value will be used to update the inputDate with |
chooseDateComp |
- | Choose Date component being updated |
Object
|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E12046-04 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |