|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openquark.gems.client.valueentry.ValueEditor
org.openquark.gems.client.valueentry.StructuredValueEditor
org.openquark.gems.client.valueentry.AlgebraicValueEditor
public class AlgebraicValueEditor
A value editor for editing an algebraic type. It allows the user to see all supported data constructors of the algebraic type, select a data constructor and enter values for the data constructor arguments.
| Nested Class Summary | |
|---|---|
static class |
AlgebraicValueEditor.AlgebraicValueEditorProvider
A custom value editor provider for the AlgebraicValueEditor. |
| Nested classes/interfaces inherited from class org.openquark.gems.client.valueentry.ValueEditor |
|---|
ValueEditor.Info, ValueEditor.ValueEditorKeyListener |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class org.openquark.gems.client.valueentry.ValueEditor |
|---|
valueEditorHierarchyManager, valueEditorManager |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AlgebraicValueEditor(ValueEditorHierarchyManager valueEditorHierarchyManager)
Constructs a new AlgebraicValueEditor. |
|
| Method Summary | |
|---|---|
void |
cancelValue()
Cancel the edit of the value node currently under edit in this editor. |
void |
commitValue()
Commit the value node currently under edit in this editor. |
void |
editorActivated()
Notify the value editor that it has been activated. |
Component |
getDefaultFocusComponent()
Get the component which by default has focus. |
protected void |
handleElementLaunchingEditor()
When an element has launched a ValueEditor, there might be set-up issues that need to be done. |
void |
refreshDisplay()
Refreshes the ValueEditor to display the latest data. |
void |
setEditable(boolean editable)
Set the editable state for the ValueEditor. |
void |
setInitialValue()
Call this method to make the ValueEditor initialize its values. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AlgebraicValueEditor(ValueEditorHierarchyManager valueEditorHierarchyManager)
valueEditorHierarchyManager - | Method Detail |
|---|
public void setEditable(boolean editable)
ValueEditor
setEditable in class ValueEditorValueEditor.setEditable(boolean)public void commitValue()
ValueEditor
commitValue in class ValueEditorValueEditor.commitValue()public void cancelValue()
ValueEditor
cancelValue in class ValueEditorValueEditor.cancelValue()public Component getDefaultFocusComponent()
ValueEditor
getDefaultFocusComponent in class ValueEditorValueEditor.getDefaultFocusComponent()protected void handleElementLaunchingEditor()
StructuredValueEditor
handleElementLaunchingEditor in class StructuredValueEditorStructuredValueEditor.handleElementLaunchingEditor()public void setInitialValue()
ValueEditor
setInitialValue in class ValueEditorValueEditor.setInitialValue()public void editorActivated()
ValueEditor
editorActivated in class ValueEditorValueEditor.editorActivated()public void refreshDisplay()
ValueEditor
refreshDisplay in class ValueEditorValueEditor.refreshDisplay()
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||