iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.core.ui
Class ISeriesDatePrompt

java.lang.Object
  extended bycom.ibm.etools.iseries.core.ui.ISeriesDatePrompt
All Implemented Interfaces:
Listener

public class ISeriesDatePrompt
extends Object
implements Listener

Date widget used to prompt date.


Field Summary
static String CHINA
           
static String copyright
           
static String[] days29Array
           
static String[] days30Array
           
static String[] days31Array
           
static int END_OF_DAY
           
static String JAPAN
           
static String KOREA
           
static int MIDDLE_OF_DAY
           
static String[] monthsArray
           
static String SINGABORE
           
static int START_OF_DAY
           
static String TAIWAN
           
static String US
           
 
Constructor Summary
ISeriesDatePrompt(Composite parent, Date date)
          Constructor
 
Method Summary
 void addDayModifyListener(ModifyListener listener)
          Register a listener interested in day entry field modify events
 void addMonthModifyListener(ModifyListener listener)
          Register a listener interested in month entry field modify events
 void addYearModifyListener(ModifyListener listener)
          Register a listener interested in year entry field modify events
 void dispose()
           
 Control getControl()
           
 Date getDate()
          Return date from prompt with time set to noon
 Date getDate(int timeOfDay)
          Return date from prompt with time set to one requested
 void handleEvent(Event event)
          Handle event to increase or decrease year
 boolean isDisposed()
           
protected  int setDayComboItems(int month)
          Set the date combo based on the month
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

START_OF_DAY

public static final int START_OF_DAY
See Also:
Constant Field Values

END_OF_DAY

public static final int END_OF_DAY
See Also:
Constant Field Values

MIDDLE_OF_DAY

public static final int MIDDLE_OF_DAY
See Also:
Constant Field Values

monthsArray

public static final String[] monthsArray

days31Array

public static final String[] days31Array

days30Array

public static final String[] days30Array

days29Array

public static final String[] days29Array

US

public static final String US
See Also:
Constant Field Values

TAIWAN

public static final String TAIWAN
See Also:
Constant Field Values

SINGABORE

public static final String SINGABORE
See Also:
Constant Field Values

CHINA

public static final String CHINA
See Also:
Constant Field Values

JAPAN

public static final String JAPAN
See Also:
Constant Field Values

KOREA

public static final String KOREA
See Also:
Constant Field Values
Constructor Detail

ISeriesDatePrompt

public ISeriesDatePrompt(Composite parent,
                         Date date)
Constructor

Parameters:
parent - - composite for this prompt
date - - initial date. If null, current day is used, but not the time
Method Detail

handleEvent

public void handleEvent(Event event)
Handle event to increase or decrease year

Specified by:
handleEvent in interface Listener

getDate

public Date getDate()
Return date from prompt with time set to noon

Returns:
date - if null, means no valid date is specified. Use this to check if the form is complete.

getDate

public Date getDate(int timeOfDay)
Return date from prompt with time set to one requested

Returns:
date - if null, means no valid date is specified. Use this to check if the form is complete.

addDayModifyListener

public void addDayModifyListener(ModifyListener listener)
Register a listener interested in day entry field modify events


addMonthModifyListener

public void addMonthModifyListener(ModifyListener listener)
Register a listener interested in month entry field modify events


addYearModifyListener

public void addYearModifyListener(ModifyListener listener)
Register a listener interested in year entry field modify events


setDayComboItems

protected int setDayComboItems(int month)
Set the date combo based on the month

Parameters:
month -

dispose

public void dispose()

isDisposed

public boolean isDisposed()

getControl

public Control getControl()

iSeries Remote Systems
v6.0.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.