|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.gui.custom.CustomComposite
com.groovemanager.gui.custom.controls.BooleanControlComposite
This class is used to make a BooleanControl editable for the user
| Field Summary | |
|---|---|
private boolean |
auto
Indicates whether auto-apply is set to on or off |
private javax.sound.sampled.BooleanControl |
control
The BooleanControl represented by this Composite |
private org.eclipse.swt.widgets.Button |
first
Button for true value |
private org.eclipse.swt.widgets.Button |
second
Button for true value |
| Constructor Summary | |
|---|---|
BooleanControlComposite(javax.sound.sampled.BooleanControl control,
org.eclipse.swt.widgets.Composite parent)
Construct a new BooleanControlComposite using SWT.NONE style constant |
|
BooleanControlComposite(javax.sound.sampled.BooleanControl control,
org.eclipse.swt.widgets.Composite parent,
int style)
Construct a new BooleanControlComposite |
|
| Method Summary | |
|---|---|
void |
apply()
Appl the changes made by the user to the underlying Control instance |
protected org.eclipse.swt.widgets.Composite |
createComposite(org.eclipse.swt.widgets.Composite parent,
int style)
This method is to be overwritten by concrete subclasses to create the real contents of this CustomComposite |
protected int[] |
getListenerTypes()
For all types of listeners that should be possible to add to this Composite directly, the corresponding SWT.* constant should be contained in the returned Array. |
protected int |
getPossibleStyles()
Get a combination of all allowed SWT.* style constants |
void |
reset()
Reset the GUI elements to the value of the underlying Control instance |
void |
setAutoApply(boolean auto)
Set this Container into auto-apply mode or out of auto-apply mode. |
| Methods inherited from class com.groovemanager.gui.custom.CustomComposite |
|---|
addListener, checkStyle, getComposite, getData, getListeners, getParent, removeListener, setData, setLayoutData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean auto
private javax.sound.sampled.BooleanControl control
private org.eclipse.swt.widgets.Button first
private org.eclipse.swt.widgets.Button second
| Constructor Detail |
|---|
public BooleanControlComposite(javax.sound.sampled.BooleanControl control,
org.eclipse.swt.widgets.Composite parent)
control - The BooleanControl to editparent - The parent Composite
public BooleanControlComposite(javax.sound.sampled.BooleanControl control,
org.eclipse.swt.widgets.Composite parent,
int style)
control - The BooleanControl to editparent - The parent Compositestyle - Combination of SWT.* style constants| Method Detail |
|---|
public void apply()
ControlContainer
apply in interface ControlContainerControlContainer.apply()
protected org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent,
int style)
CustomComposite
createComposite in class CustomCompositeparent - The parent Composite under which this Composite should
be createdstyle - Combination of valid SWT.* style constants
CustomComposite.createComposite(org.eclipse.swt.widgets.Composite, int)protected int[] getListenerTypes()
CustomComposite
getListenerTypes in class CustomCompositeCustomComposite.getListenerTypes()protected int getPossibleStyles()
CustomComposite
getPossibleStyles in class CustomCompositeSWT.BORDER | SWT.LEFT | SWT.BORDERCustomComposite.getPossibleStyles()public void reset()
ControlContainer
reset in interface ControlContainerControlContainer.reset()public void setAutoApply(boolean auto)
ControlContainer
setAutoApply in interface ControlContainerauto - true if auto-apply should be turned on, false otherwiseControlContainer.setAutoApply(boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||