|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.ui.sensitivity.EditorHelper
public class EditorHelper
Helper for sensitivity Swing component manipulation.
| Constructor Summary | |
|---|---|
EditorHelper()
|
|
| Method Summary | |
|---|---|
static boolean |
canBeContinue(javax.swing.JComponent component,
java.lang.Object value)
Return true if component or value can be defined in continuous factor. |
static boolean |
canBeContinue(javax.swing.JComponent component,
org.nuiton.topia.persistence.TopiaEntity entity)
Return true if component or entity can be defined in continuous factor. |
static ContinuousPanelContainerUI |
getContinuousPanel(javax.swing.JComponent component,
org.nuiton.topia.persistence.TopiaEntity entity)
Get copy of component with original entity value as default value. |
static ContinuousPanelContainerUI |
getContinuousPanelWithValue(javax.swing.JComponent component,
ContinuousDomain<?,?> domain,
Factor<?,?> factor)
Get continuous editor for component with given value. |
static ContinuousPanelContainerUI |
getContinuousRangeOfValuePanel(javax.swing.JComponent cOrigine,
org.nuiton.topia.persistence.TopiaEntity bean)
|
static java.util.List<java.lang.String> |
getDiscretRangeOfValueValues(javax.swing.JComponent cOrigine,
org.nuiton.topia.persistence.TopiaEntity bean)
|
static javax.swing.JComponent |
getEditor(javax.swing.JComponent component,
org.nuiton.topia.persistence.TopiaEntity entity)
Get copy of component with original entity value as default value. |
static javax.swing.JComponent |
getEditorForFactor(Factor<?,?> factor,
org.nuiton.topia.TopiaContext context)
Return the component to edit factor depending on factor path. |
static javax.swing.JComponent |
getEditorForType(java.lang.Class<?> typeClazz)
Get editor for type. |
static javax.swing.JComponent |
getEditorForValue(java.lang.Object bean,
java.lang.String beanProperty)
Get editor for editing value. |
static javax.swing.JComponent |
getEditorWithValue(javax.swing.JComponent component)
Get new instance of component filled with original swing component value. |
static javax.swing.JComponent |
getEditorWithValue(javax.swing.JComponent component,
java.lang.Object value)
Get new instance of component filled with specified value depending of component type. |
static java.lang.String |
getMethod(javax.swing.JComponent component)
Get "method" property value for wing component. |
protected static java.lang.Object |
getMethodValue(java.lang.Object entity,
java.lang.String fieldName)
Get value for fieldName in entity. |
protected static javax.swing.JTextField |
getNewBoundEditor(javax.swing.JComponent component,
org.nuiton.topia.persistence.TopiaEntity entity)
Get new text component with current entity default value. |
static java.lang.Object |
getValue(javax.swing.JComponent component)
Return value in swing component that could be next used into factor. |
static boolean |
isContinue(javax.swing.JComponent component)
Return if component is is continue factor enable. |
static boolean |
isRangeOfValue(javax.swing.JComponent component)
Return if component is instanceof RangeOfValuesUI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorHelper()
| Method Detail |
|---|
public static java.lang.String getMethod(javax.swing.JComponent component)
component - component
public static javax.swing.JComponent getEditor(javax.swing.JComponent component,
org.nuiton.topia.persistence.TopiaEntity entity)
component - componententity - entity
public static ContinuousPanelContainerUI getContinuousPanel(javax.swing.JComponent component,
org.nuiton.topia.persistence.TopiaEntity entity)
component - componententity - entity
protected static javax.swing.JTextField getNewBoundEditor(javax.swing.JComponent component,
org.nuiton.topia.persistence.TopiaEntity entity)
component - componententity - entity
public static ContinuousPanelContainerUI getContinuousPanelWithValue(javax.swing.JComponent component,
ContinuousDomain<?,?> domain,
Factor<?,?> factor)
component - componentdomain - domainfactor - factor
public static javax.swing.JComponent getEditorWithValue(javax.swing.JComponent component)
component - component
public static javax.swing.JComponent getEditorWithValue(javax.swing.JComponent component,
java.lang.Object value)
component - componentvalue - value
public static java.lang.Object getValue(javax.swing.JComponent component)
component - component
public static boolean isRangeOfValue(javax.swing.JComponent component)
RangeOfValuesUI.
component - component
true if component is intance of RangeOfValuesUIpublic static boolean isContinue(javax.swing.JComponent component)
component - component
true if component is is continue factor enable
public static boolean canBeContinue(javax.swing.JComponent component,
org.nuiton.topia.persistence.TopiaEntity entity)
component - componententity - entity
public static boolean canBeContinue(javax.swing.JComponent component,
java.lang.Object value)
component - componentvalue - value
protected static java.lang.Object getMethodValue(java.lang.Object entity,
java.lang.String fieldName)
entity - fieldName -
public static ContinuousPanelContainerUI getContinuousRangeOfValuePanel(javax.swing.JComponent cOrigine,
org.nuiton.topia.persistence.TopiaEntity bean)
public static java.util.List<java.lang.String> getDiscretRangeOfValueValues(javax.swing.JComponent cOrigine,
org.nuiton.topia.persistence.TopiaEntity bean)
public static javax.swing.JComponent getEditorForFactor(Factor<?,?> factor,
org.nuiton.topia.TopiaContext context)
factor - factorcontext - context
public static javax.swing.JComponent getEditorForType(java.lang.Class<?> typeClazz)
typeClazz - type to get editor
public static javax.swing.JComponent getEditorForValue(java.lang.Object bean,
java.lang.String beanProperty)
bean - beanbeanProperty - bean property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||