|
||||||||||
| 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.tbee.swing.jpa.AbstractEntityJTextField<T,F>
T - the entity typeF - the actual class of this fieldpublic class AbstractEntityJTextField<T,F>
A JTextField with a search button and an optional zoom button. A whereclause can be set to limit the result.
| Nested Class Summary |
|---|
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected JpaEntitySearchButton<T> |
iJpaEntitySearchButton
|
protected JTextField<T> |
iJTextField
|
protected ImageButton |
iJumpButton
|
static String |
VALUE_PROPERTY_ID
|
static String |
WHERECLAUSE_PROPERTY_ID
|
static String |
WHERECLAUSEPARAMETERS_PROPERTY_ID
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, 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 | |
|---|---|
AbstractEntityJTextField(JTextField<T> textfield,
Class entityClass,
String prefix)
|
|
| Method Summary | |
|---|---|
Class |
getEntityClass()
EntityClass |
JTextField |
getJTextField()
|
boolean |
getJumpButtonVisible()
|
String |
getPath()
|
String |
getToolTipText()
|
T |
getValue()
|
String |
getWhereclause()
Whereclause: use <*> for the entity, like "<*>.iIsbilling = true" |
nl.knowledgeplaza.util.LinearMap<String,Object> |
getWhereclauseParameters()
WhereclauseParameters: |
boolean |
isEditable()
|
boolean |
isEnabled()
|
boolean |
isSearchButtonVisible()
|
protected void |
jump()
quicksearch |
boolean |
requestFocusInWindow()
focus requests are redirected to the textfield |
void |
setEditable(boolean value)
Editable |
void |
setEnabled(boolean value)
Enabled |
void |
setEntityClass(Class value)
|
void |
setJumpButtonVisible(boolean value)
JumpButtonVisible |
void |
setPath(String value)
path |
void |
setSearchButtonVisible(boolean value)
SearchButtonVisible |
void |
setToolTipText(String value)
ToolTipText |
void |
setValue(T value)
Value |
void |
setWhereclause(String value)
|
void |
setWhereclauseParameters(nl.knowledgeplaza.util.LinearMap<String,Object> value)
|
F |
withEditable(boolean value)
|
F |
withEnabled(boolean value)
|
F |
withEntityClass(Class value)
|
F |
withJumpButtonVisible(boolean value)
|
F |
withPath(String value)
|
F |
withSearchButtonVisible(boolean value)
|
F |
withToolTipText(String value)
|
F |
withValue(T value)
|
F |
withWhereclause(String value)
|
F |
withWhereclauseParameters(nl.knowledgeplaza.util.LinearMap<String,Object> value)
|
| 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 |
| Field Detail |
|---|
protected ImageButton iJumpButton
protected JTextField<T> iJTextField
protected JpaEntitySearchButton<T> iJpaEntitySearchButton
public static final String VALUE_PROPERTY_ID
public static final String WHERECLAUSE_PROPERTY_ID
public static final String WHERECLAUSEPARAMETERS_PROPERTY_ID
| Constructor Detail |
|---|
public AbstractEntityJTextField(JTextField<T> textfield,
Class entityClass,
String prefix)
| Method Detail |
|---|
public JTextField getJTextField()
public boolean requestFocusInWindow()
requestFocusInWindow in class JComponentprotected void jump()
public Class getEntityClass()
public F withEntityClass(Class value)
public void setEntityClass(Class value)
public void setValue(T value)
public F withValue(T value)
public T getValue()
public void setEditable(boolean value)
public F withEditable(boolean value)
public boolean isEditable()
public void setEnabled(boolean value)
setEnabled in class JComponentpublic F withEnabled(boolean value)
public boolean isEnabled()
isEnabled in class Componentpublic void setToolTipText(String value)
setToolTipText in class JComponentpublic F withToolTipText(String value)
public String getToolTipText()
getToolTipText in class JComponentpublic void setPath(String value)
public F withPath(String value)
public String getPath()
public void setJumpButtonVisible(boolean value)
public F withJumpButtonVisible(boolean value)
public boolean getJumpButtonVisible()
public void setSearchButtonVisible(boolean value)
public F withSearchButtonVisible(boolean value)
public boolean isSearchButtonVisible()
public String getWhereclause()
public void setWhereclause(String value)
public F withWhereclause(String value)
public nl.knowledgeplaza.util.LinearMap<String,Object> getWhereclauseParameters()
public void setWhereclauseParameters(nl.knowledgeplaza.util.LinearMap<String,Object> value)
public F withWhereclauseParameters(nl.knowledgeplaza.util.LinearMap<String,Object> value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||