Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.editor.actions
Class FilterByDateAction

java.lang.Object
  extended by TextEditorAction
      extended by com.ibm.etools.systems.editor.actions.FilterByDateAction

public class FilterByDateAction
extends TextEditorAction


Field Summary
protected static ResourceBundle _bundle
           
static String copyright
           
static String FILTER_ACTION_NAME
           
static String FILTER_BY_DATE_ID
           
static int MAGIC_YEAR
          the magic date where if the year is less than it, it is 20xx and if the year is greater or equal to it then it is 19xx.
static String NO_SEQUENCE_NUMBERS
          the value that indicates that source doesn't have sequqence numbers
 
Constructor Summary
FilterByDateAction(ITextEditor editor)
          Constructor for FilterByDateAction.
 
Method Summary
 boolean available(LpexView view)
          Method available.
 void doAction(LpexView view)
          Method doAction.
static void filterView(LpexView view, String fromDate, String toDate, int optionSelected)
          Filters the view based on information provided
 void registerView(LpexView view)
          Updates the view, putting this action into the filter view popup
 void run()
           
 void update()
           
 
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

NO_SEQUENCE_NUMBERS

public static final String NO_SEQUENCE_NUMBERS
the value that indicates that source doesn't have sequqence numbers

See Also:
Constant Field Values

MAGIC_YEAR

public static final int MAGIC_YEAR
the magic date where if the year is less than it, it is 20xx and if the year is greater or equal to it then it is 19xx. IMPORTANT NOTE: this is the same as SEU

See Also:
Constant Field Values

FILTER_BY_DATE_ID

public static final String FILTER_BY_DATE_ID
See Also:
Constant Field Values

FILTER_ACTION_NAME

public static final String FILTER_ACTION_NAME
See Also:
Constant Field Values

_bundle

protected static ResourceBundle _bundle
Constructor Detail

FilterByDateAction

public FilterByDateAction(ITextEditor editor)
Constructor for FilterByDateAction.

Method Detail

registerView

public void registerView(LpexView view)
Updates the view, putting this action into the filter view popup

Parameters:
view - the view to update

available

public boolean available(LpexView view)
Method available. Filtering by date is only available when there are sequence numbers

Parameters:
view - the LpexView used to determine whether or not the action is availab les
See Also:
com.ibm.lpex.core.LpexAction#available(LpexView)

doAction

public void doAction(LpexView view)
Method doAction. Displays the FilterDateDialog and then filters by specified date and then filters the view

Parameters:
view - the view to perform the action on.
See Also:
com.ibm.lpex.core.LpexAction#doAction(LpexView)

filterView

public static void filterView(LpexView view,
                              String fromDate,
                              String toDate,
                              int optionSelected)
Filters the view based on information provided

Parameters:
view - the view to filter
fromDate - the from date
toDate - the to date
optionSelected - the option selected in for filtering (ie EQUAL_TO_SELECTED)

update

public void update()

run

public void run()

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 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.