|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IManagedOptionValueHandler
This interface represents an option value handler in the managed build system. It is used to enable a tool integrator to use the MBS configuration GUI, while linking to an alternative back-end.
Field Summary | |
---|---|
static int |
EVENT_APPLY
The default value option::defaultValue has been set. |
static int |
EVENT_CLOSE
The option is opened, i.e. its UI element is created. |
static int |
EVENT_LOAD
The option has been set by pressing the Apply button (or the OK button). |
static int |
EVENT_OPEN
|
static int |
EVENT_SETDEFAULT
The option is closed. i.e. its value has been destroyed when a configuration/resource gets deleted. |
Method Summary | |
---|---|
boolean |
handleValue(IBuildObject configuration,
IHoldsOptions holder,
IOption option,
java.lang.String extraArgument,
int event)
Handles transfer between values between UI element and back-end in different circumstances. |
boolean |
isDefaultValue(IBuildObject configuration,
IHoldsOptions holder,
IOption option,
java.lang.String extraArgument)
Checks whether the value of an option is its default value. |
boolean |
isEnumValueAppropriate(IBuildObject configuration,
IHoldsOptions holder,
IOption option,
java.lang.String extraArgument,
java.lang.String enumValue)
Checks whether an enumeration value of an option is currently a valid choice. |
Field Detail |
---|
static final int EVENT_OPEN
static final int EVENT_CLOSE
static final int EVENT_SETDEFAULT
static final int EVENT_APPLY
static final int EVENT_LOAD
Method Detail |
---|
boolean handleValue(IBuildObject configuration, IHoldsOptions holder, IOption option, java.lang.String extraArgument, int event)
configuration
- build configuration of option
(may be IConfiguration or IResourceConfiguration)holder
- contains the holder of the optionoption
- the option that is handledextraArgument
- extra argument for handlerevent
- event to be handled
boolean isDefaultValue(IBuildObject configuration, IHoldsOptions holder, IOption option, java.lang.String extraArgument)
configuration
- build configuration of option
(may be IConfiguration or IResourceConfiguration)holder
- contains the holder of the optionoption
- the option that is handledextraArgument
- extra argument for handler
The additional options besides configuration are supplied to
provide enough information for querying the default value from
a potential data storage back-end.
boolean isEnumValueAppropriate(IBuildObject configuration, IHoldsOptions holder, IOption option, java.lang.String extraArgument, java.lang.String enumValue)
configuration
- build configuration of option
(may be IConfiguration or IResourceConfiguration)holder
- contains the holder of the optionoption
- the option that is handledextraArgument
- extra argument for handlerenumValue
- enumeration value that is to be checked
The additional options besides configuration are supplied to
provide enough information for querying information from a
a potential data storage back-end.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |