public class BindingSelector extends org.openflexo.swing.TextFieldCustomPopup<org.openflexo.connie.DataBinding> implements org.openflexo.gina.model.widget.FIBCustom.FIBCustomComponent<org.openflexo.connie.DataBinding>, Observer, PropertyChangeListener
DataBinding
Modifier and Type | Class and Description |
---|---|
static class |
BindingSelector.TestBindable |
org.openflexo.swing.CustomPopup.ApplyCancelListener, org.openflexo.swing.CustomPopup.CustomJPopupMenu, org.openflexo.swing.CustomPopup.CustomPopupConfiguration, org.openflexo.swing.CustomPopup.ResizablePanel
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected boolean |
_allowsBindingExpressions |
protected boolean |
_allowsCompoundBindings |
protected boolean |
_allowsStaticValues |
protected boolean |
_hideFilteredObjects |
protected AbstractBindingSelectorPanel |
_selectorPanel |
protected org.openflexo.gina.event.GinaEventNotifier<org.openflexo.gina.event.description.EventDescription> |
GENotifier |
KeyAdapter |
shortcutsKeyAdapter |
protected KeyEventDispatcher |
tabDispatcher |
_downButton, _editedObject, _frontComponent, _popup, configuration, logger
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
BindingSelector(org.openflexo.connie.DataBinding<?> editedObject) |
BindingSelector(org.openflexo.connie.DataBinding<?> editedObject,
int cols) |
Modifier and Type | Method and Description |
---|---|
void |
activateBindingExpressionMode() |
void |
activateCompoundBindingMode() |
void |
activateNormalBindingMode() |
void |
allowsBindingExpressions() |
void |
allowsCompoundBindings() |
void |
allowsStaticValues() |
void |
apply() |
boolean |
areBindingExpressionsAllowed() |
boolean |
areCompoundBindingAllowed() |
boolean |
areStaticValuesAllowed() |
void |
cancel() |
protected org.openflexo.connie.DataBinding<?> |
checkIfDisplayModeShouldChange(org.openflexo.connie.DataBinding<?> newDataBinding,
boolean setValueAsNewEditedValue)
This method is called as a hook allowing to change display mode
|
void |
closePopup() |
void |
connect() |
protected org.openflexo.swing.CustomPopup.ResizablePanel |
createCustomPanel(org.openflexo.connie.DataBinding editedObject) |
void |
delete() |
protected void |
deleteCustomPanel() |
void |
denyBindingExpressions() |
void |
denyCompoundBindings() |
void |
denyStaticValues() |
void |
disconnect() |
void |
fireEditedObjectChanged() |
org.openflexo.connie.Bindable |
getBindable() |
org.openflexo.connie.BindingModel |
getBindingModel() |
AbstractBindingSelectorPanel |
getCustomPanel() |
boolean |
getIsUpdatingModel() |
Class<org.openflexo.connie.DataBinding> |
getRepresentedType() |
org.openflexo.connie.DataBinding |
getRevertValue() |
void |
init(org.openflexo.gina.model.widget.FIBCustom component,
org.openflexo.gina.controller.FIBController controller) |
boolean |
isConnected() |
static void |
main(String[] args)
This main allows to launch an application testing the BindingSelector
|
protected org.openflexo.connie.expr.Expression |
makeBinding() |
protected org.openflexo.swing.CustomPopup.CustomJPopupMenu |
makePopup() |
protected void |
openPopup() |
protected void |
pointerLeavesPopup() |
void |
propertyChange(PropertyChangeEvent evt) |
void |
refreshBindingModel() |
void |
registerListenerForBindable() |
String |
renderedString(org.openflexo.connie.DataBinding editedObject) |
void |
resetMethodCallPanel() |
void |
setBindable(org.openflexo.connie.Bindable bindable) |
void |
setEditedObject(org.openflexo.connie.DataBinding dataBinding) |
void |
setEditedObject(org.openflexo.connie.DataBinding<?> dataBinding,
boolean updateBindingSelectionMode) |
void |
setRevertValue(org.openflexo.connie.DataBinding oldValue) |
void |
setUpdatingModel(boolean isUpdatingModelFlag) |
protected void |
synchronizeWithTextFieldValue(String textValue) |
void |
unregisterListenerForBindable() |
void |
update(Observable observable,
Object notification) |
void |
updateCustomPanel(org.openflexo.connie.DataBinding editedObject) |
void |
updateTextFieldProgrammaticaly() |
void |
updateUI() |
buildFrontComponent, getFrontComponent, getLabel, getTextField, isProgrammaticalySet, setFont, setProgrammaticalySet, startEditTextProgrammatically, stopEditTextProgrammatically, textIsBeeingProgrammaticallyEditing
actionPerformed, addApplyCancelListener, additionalActions, closePopup, deletePopup, getCustomPanel, getDownButton, getEditedObject, getRequiredWidth, localizedForKey, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, notifyApplyPerformed, popupIsShown, removeApplyCancelListener, setBackground, setEnabled, setForeground, useEqualsLookup
getAccessibleContext, getUI, getUIClassID, paramString, setUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected boolean _allowsBindingExpressions
protected boolean _allowsCompoundBindings
protected boolean _allowsStaticValues
protected boolean _hideFilteredObjects
protected AbstractBindingSelectorPanel _selectorPanel
protected KeyEventDispatcher tabDispatcher
public KeyAdapter shortcutsKeyAdapter
protected org.openflexo.gina.event.GinaEventNotifier<org.openflexo.gina.event.description.EventDescription> GENotifier
public BindingSelector(org.openflexo.connie.DataBinding<?> editedObject)
public BindingSelector(org.openflexo.connie.DataBinding<?> editedObject, int cols)
public void init(org.openflexo.gina.model.widget.FIBCustom component, org.openflexo.gina.controller.FIBController controller)
init
in interface org.openflexo.gina.model.widget.FIBCustom.FIBCustomComponent<org.openflexo.connie.DataBinding>
public Class<org.openflexo.connie.DataBinding> getRepresentedType()
getRepresentedType
in interface org.openflexo.gina.model.widget.FIBCustom.FIBCustomComponent<org.openflexo.connie.DataBinding>
protected void synchronizeWithTextFieldValue(String textValue)
public void setEditedObject(org.openflexo.connie.DataBinding dataBinding)
setEditedObject
in interface org.openflexo.gina.model.widget.FIBCustom.FIBCustomComponent<org.openflexo.connie.DataBinding>
setEditedObject
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
public void setEditedObject(org.openflexo.connie.DataBinding<?> dataBinding, boolean updateBindingSelectionMode)
protected org.openflexo.connie.DataBinding<?> checkIfDisplayModeShouldChange(org.openflexo.connie.DataBinding<?> newDataBinding, boolean setValueAsNewEditedValue)
newDataBinding
- setValueAsNewEditedValue
- public boolean isConnected()
public void connect()
public void disconnect()
public void fireEditedObjectChanged()
fireEditedObjectChanged
in class org.openflexo.swing.TextFieldCustomPopup<org.openflexo.connie.DataBinding>
public boolean areCompoundBindingAllowed()
public void allowsCompoundBindings()
public void denyCompoundBindings()
public boolean areBindingExpressionsAllowed()
public void allowsBindingExpressions()
public void denyBindingExpressions()
public boolean areStaticValuesAllowed()
public void allowsStaticValues()
public void denyStaticValues()
public void activateCompoundBindingMode()
public void activateNormalBindingMode()
public void activateBindingExpressionMode()
public void delete()
delete
in interface org.openflexo.gina.model.widget.FIBCustom.FIBCustomComponent<org.openflexo.connie.DataBinding>
delete
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
protected void deleteCustomPanel()
deleteCustomPanel
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
public void setRevertValue(org.openflexo.connie.DataBinding oldValue)
setRevertValue
in interface org.openflexo.gina.model.widget.FIBCustom.FIBCustomComponent<org.openflexo.connie.DataBinding>
setRevertValue
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
public org.openflexo.connie.DataBinding getRevertValue()
getRevertValue
in interface org.openflexo.gina.model.widget.FIBCustom.FIBCustomComponent<org.openflexo.connie.DataBinding>
protected org.openflexo.swing.CustomPopup.ResizablePanel createCustomPanel(org.openflexo.connie.DataBinding editedObject)
createCustomPanel
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
public void refreshBindingModel()
public void updateCustomPanel(org.openflexo.connie.DataBinding editedObject)
updateCustomPanel
in class org.openflexo.swing.TextFieldCustomPopup<org.openflexo.connie.DataBinding>
public void resetMethodCallPanel()
public String renderedString(org.openflexo.connie.DataBinding editedObject)
renderedString
in class org.openflexo.swing.TextFieldCustomPopup<org.openflexo.connie.DataBinding>
public org.openflexo.connie.Bindable getBindable()
@FIBCustom.FIBCustomComponent.CustomComponentParameter(name="bindable", type=MANDATORY) public void setBindable(org.openflexo.connie.Bindable bindable)
public void registerListenerForBindable()
public void unregisterListenerForBindable()
public void updateTextFieldProgrammaticaly()
updateTextFieldProgrammaticaly
in class org.openflexo.swing.TextFieldCustomPopup<org.openflexo.connie.DataBinding>
public void update(Observable observable, Object notification)
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public org.openflexo.connie.BindingModel getBindingModel()
public AbstractBindingSelectorPanel getCustomPanel()
getCustomPanel
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
protected org.openflexo.connie.expr.Expression makeBinding()
protected org.openflexo.swing.CustomPopup.CustomJPopupMenu makePopup()
makePopup
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
protected void openPopup()
openPopup
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
public void closePopup()
closePopup
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
public void apply()
apply
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
public void cancel()
cancel
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
protected void pointerLeavesPopup()
pointerLeavesPopup
in class org.openflexo.swing.CustomPopup<org.openflexo.connie.DataBinding>
public boolean getIsUpdatingModel()
public void setUpdatingModel(boolean isUpdatingModelFlag)
public static void main(String[] args) throws SecurityException, IOException
args
- SecurityException
IOException
Copyright © 2018 Openflexo. All rights reserved.