|
JDeveloper SCM API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ide.scm.SCMOptionsCustomizerAdapter | +--oracle.ide.scm.util.SCMCommentsOptionsCustomizer
Comments options customizer, for user entry of a comments option within the file lister dialog. Designed to decorate any customizer, adding the comments components to the north of the delegated customizer UI. This utility does not provide tri-state support for comments entry. The single comment value is added as a general option keyed against field KEY_COMMENT.
Implementation advice; 'C' is the reserved mnemonic which is used for the comments area of the user interface. Please avoid making a similar mnemonic association in the decorator delegate.
Field Summary | |
static java.lang.String |
KEY_COMMENT
The key for the file comment option |
Constructor Summary | |
SCMCommentsOptionsCustomizer()
Constructs a comments option customizer with no delegate. |
|
SCMCommentsOptionsCustomizer(SCMOptionsCustomizer customizer)
Constructs a comments option customizer decorating the given customizer. |
|
SCMCommentsOptionsCustomizer(SCMOptionsCustomizer customizer,
java.awt.Container location)
Constructs a comments option customizer decorating the given customizer, and whose UI occupies the given container. |
Method Summary | |
void |
commitOptions()
Commits any outstanding changes that may be reflected in components to the customizer's options object. |
java.awt.Component |
getComponent()
Gets the initialized comments customizer component. |
protected java.lang.String |
getDefaultComments()
Gets the default comments option value. |
SCMOptions |
getOptions()
Gets the working options object. |
void |
initializeOptions(java.util.List l)
This implementation does nothing. |
void |
selectionChanged(SCMFile[] before,
SCMFile[] after)
Notifies the customizer that the file selection has changed. |
void |
validateOptions()
Perform any necessary validation on options held in the UI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String KEY_COMMENT
Constructor Detail |
public SCMCommentsOptionsCustomizer()
public SCMCommentsOptionsCustomizer(SCMOptionsCustomizer customizer)
customizer
- the delegate, or null.public SCMCommentsOptionsCustomizer(SCMOptionsCustomizer customizer, java.awt.Container location)
customizer
- the delegate, or null.location
- the container for UI, or null to use a default layout.
When using a location, the delegate's component will be returned;
it is assumed that the container location is within the delegate
component hierarchy.Method Detail |
protected java.lang.String getDefaultComments()
public java.awt.Component getComponent()
getComponent
in class SCMOptionsCustomizerAdapter
public void initializeOptions(java.util.List l)
initializeOptions
in class SCMOptionsCustomizerAdapter
l
- the list of all SCMFiles in the list dialogpublic SCMOptions getOptions()
getOptions
in class SCMOptionsCustomizerAdapter
public void selectionChanged(SCMFile[] before, SCMFile[] after) throws SCMSelectionVetoException
selectionChanged
in class SCMOptionsCustomizerAdapter
before
- the previously selected files.after
- the newly selected files.public final void validateOptions() throws SCMException
validateOptions
in class SCMOptionsCustomizerAdapter
SCMException
- if validation failed on an option.public void commitOptions()
commitOptions
in class SCMOptionsCustomizerAdapter
|
Copyright © 2002 Oracle Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |