|
JDeveloper SCM API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ide.scm.SCMOptionsCustomizerAdapter | +--oracle.ide.scm.util.SCMAbstractOptionsCustomizer
Utility class that makes implementing an options customizer with tri-state support easier.
Constructor Summary | |
SCMAbstractOptionsCustomizer()
|
Method Summary | |
void |
commitOptions()
The customizer should commit any outstanding UI changes that need to be flushed to the Options object. |
protected SCMFile[] |
getCurrentSelection()
Get the last selection the customizer was notified about. |
SCMOptions |
getOptions()
Get the Options object for this customizer. |
protected oracle.bm.util.ui.TriStateModel.TriStateEnum |
getTriState(SCMFile[] files,
java.lang.String option)
Utility method which figures out the correct tri state for a set of elements which have a boolean option. |
protected abstract void |
initDefaults()
The subclass should initialize the options object with the defaults for this customizer. |
void |
initializeOptions(java.util.List l)
Performs no initialization on options. |
protected abstract void |
saveOptions(SCMFile[] sel)
Save the state of the UI into the options object for all selected elements. |
void |
selectionChanged(SCMFile[] oldSelection,
SCMFile[] newSelection)
The customizer is notified when the selection changes in the dialog it is customizing. |
protected void |
setTriStateOption(SCMFile file,
oracle.bm.util.ui.TriStateCheckBox ts,
java.lang.String optionKey)
Utility method which sets a boolean option based on the state of a tri state checkbox. |
protected void |
updateMultiField(SCMFile[] sel,
java.lang.String property,
oracle.bm.util.ui.MultiCapable f)
Update a multi capable text field or text area. |
protected abstract void |
updateUI(SCMFile[] sel)
Update the user interface based on options for the selected |
void |
validateOptions()
Perform any necessary validation on options held in the UI. |
Methods inherited from class oracle.ide.scm.SCMOptionsCustomizerAdapter |
getComponent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SCMAbstractOptionsCustomizer()
Method Detail |
public final void selectionChanged(SCMFile[] oldSelection, SCMFile[] newSelection) throws SCMSelectionVetoException
selectionChanged
in interface SCMOptionsCustomizer
selectionChanged
in class SCMOptionsCustomizerAdapter
oldSelection
- the old selection. This may be null if the dialog
has just been initialized, and will be a zero-length array if the
selection was clearnewSelection
- the new selection. This will never be null, but may
be a zero-length array if the selection has been cleared.
oracle.bm.scm.framework.SelectionVetoException
- if you
want to veto the selection.
SCMSelectionVetoException
public void initializeOptions(java.util.List l)
SCMOptionsCustomizerAdapter
initializeOptions
in interface SCMOptionsCustomizer
initializeOptions
in class SCMOptionsCustomizerAdapter
public final SCMOptions getOptions()
getOptions
in interface SCMOptionsCustomizer
getOptions
in class SCMOptionsCustomizerAdapter
protected final SCMFile[] getCurrentSelection()
public final void validateOptions() throws SCMException
validateOptions
in interface SCMOptionsCustomizer
validateOptions
in class SCMOptionsCustomizerAdapter
SCMException
- if validation failed on an option.public final void commitOptions()
commitOptions
in interface SCMOptionsCustomizer
commitOptions
in class SCMOptionsCustomizerAdapter
protected abstract void saveOptions(SCMFile[] sel)
sel
- the elements whose options should be savedprotected abstract void updateUI(SCMFile[] sel)
sel
- The elements which should be used to populate the UIprotected abstract void initDefaults()
protected final oracle.bm.util.ui.TriStateModel.TriStateEnum getTriState(SCMFile[] files, java.lang.String option)
files
- the files to examineoption
- the option to check
protected final void setTriStateOption(SCMFile file, oracle.bm.util.ui.TriStateCheckBox ts, java.lang.String optionKey)
file
- the file to checkts
- the tri state checkboxoptionKey
- the option to look up.protected final void updateMultiField(SCMFile[] sel, java.lang.String property, oracle.bm.util.ui.MultiCapable f)
sel
- the selected file(s)property
- the property to look upf
- the text field or text area, which is multi capable.
|
Copyright © 2002 Oracle Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.