public abstract class AbstractApplicationUIHandler<M,UI extends ApplicationUI<M,?>> extends Object implements UIHandler<UI>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractApplicationUIHandler.RunFullInternalActionListener |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIRMATION_FORMAT |
protected UI |
ui
UI handled.
|
| Constructor and Description |
|---|
AbstractApplicationUIHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAutoSelectOnFocus(JTextField jTextField) |
protected <R> org.jdesktop.swingx.table.TableColumnExt |
addBooleanColumnToModel(TableColumnModel model,
ColumnIdentifier<R> identifier,
JTable table) |
protected <R> org.jdesktop.swingx.table.TableColumnExt |
addColumnToModel(TableColumnModel model,
ColumnIdentifier<R> identifier) |
protected <R> org.jdesktop.swingx.table.TableColumnExt |
addColumnToModel(TableColumnModel model,
TableCellEditor editor,
TableCellRenderer renderer,
ColumnIdentifier<R> identifier) |
protected <R,B> org.jdesktop.swingx.table.TableColumnExt |
addComboDataColumnToModel(TableColumnModel model,
ColumnIdentifier<R> identifier,
org.nuiton.decorator.Decorator<B> decorator,
List<B> data) |
protected <R> org.jdesktop.swingx.table.TableColumnExt |
addFloatColumnToModel(TableColumnModel model,
ColumnIdentifier<R> identifier,
String numberPattern,
boolean sign,
JTable table) |
protected <R> org.jdesktop.swingx.table.TableColumnExt |
addFloatColumnToModel(TableColumnModel model,
ColumnIdentifier<R> identifier,
String numberPattern,
JTable table) |
protected void |
addHighlighters(org.jdesktop.swingx.JXTable table) |
protected <R> org.jdesktop.swingx.table.TableColumnExt |
addIntegerColumnToModel(TableColumnModel model,
ColumnIdentifier<R> identifier,
String numberPattern,
boolean sign,
JTable table) |
protected <R> org.jdesktop.swingx.table.TableColumnExt |
addIntegerColumnToModel(TableColumnModel model,
ColumnIdentifier<R> identifier,
String numberPattern,
JTable table) |
protected void |
affectKeyStroke(AbstractButton abstractButton,
String key) |
boolean |
askCancelEditBeforeLeaving(String message) |
int |
askSaveBeforeLeaving(String message) |
void |
autoSelectRowInTable(MouseEvent e,
JPopupMenu popup) |
void |
beforeInit(UI ui) |
protected void |
beforeOpenPopup(int modelRowIndex,
int modelColumnIndex)
Hook to prepare popup just before showing it.
|
protected <B> void |
changeValidatorContext(String newContext,
SwingValidator<B> validator) |
void |
closeDialog() |
protected String |
decorate(Serializable object) |
protected String |
decorate(Serializable object,
String context) |
protected abstract JComponent |
getComponentToFocus() |
ApplicationUIContext |
getContext() |
abstract <E> org.nuiton.decorator.Decorator<E> |
getDecorator(Class<E> beanType,
String decoratorContext) |
Set<org.nuiton.validator.bean.list.BeanListValidator> |
getListValidators() |
M |
getModel() |
<U extends Container> |
getParentContainer(Class<U> uiType) |
Set<org.nuiton.validator.bean.simple.SimpleBeanValidator> |
getSimpleValidators() |
abstract Component |
getTopestUI() |
UI |
getUI() |
abstract SwingValidator<M> |
getValidator()
Deprecated.
since 2.10, prefer use now the
getSimpleValidators() and getListValidators() initialized in initUI(ApplicationUI) method. |
protected void |
incrementsMessage(String message) |
protected <E> void |
initBeanComboBox(BeanComboBox<E> comboBox,
List<E> data,
E selectedData) |
protected <E> void |
initBeanComboBox(BeanComboBox<E> comboBox,
List<E> data,
E selectedData,
String decoratorContext) |
protected <E> void |
initBeanFilterableComboBox(BeanFilterableComboBox<E> comboBox,
List<E> data,
E selectedData)
Prépare un component de choix d'entités pour un type d'entité donné et
pour un service de persistance donné.
|
protected <E> void |
initBeanFilterableComboBox(BeanFilterableComboBox<E> comboBox,
List<E> data,
E selectedData,
String decoratorContext) |
protected <E> void |
initBeanList(BeanDoubleList<E> list,
List<E> data,
List<E> selectedData)
Prépare un component de choix d'entités pour un type d'entité donné et
pour un service de persistance donné.
|
protected <E> void |
initBeanList(BeanDoubleList<E> list,
List<E> data,
List<E> selectedData,
org.nuiton.decorator.Decorator<E> selectedDecorator)
Prépare un component de choix d'entités pour un type d'entité donné et
pour un service de persistance donné.
|
protected void |
initButton(AbstractButton abstractButton) |
protected void |
initComponentToFocus(Component ui) |
protected void |
initCoordinateDMDEditor(DmdCoordinateEditor editor) |
protected void |
initCoordinateDMSEditor(DmsCoordinateEditor editor) |
protected void |
initDatePicker(org.jdesktop.swingx.JXDatePicker picker) |
protected void |
initLabel(JLabel jLabel) |
protected void |
initNumberEditor(NumberEditor editor) |
protected void |
initScrollPane(JScrollPane scrollPane) |
protected void |
initTextField(JTextField jTextField) |
protected void |
initTimeEditor(SimpleTimeEditor editor) |
protected void |
initUI(UI ui) |
protected void |
initUIComponent(Object component) |
protected void |
initValidators(Set<org.nuiton.validator.bean.simple.SimpleBeanValidator> simpleValidators,
Set<org.nuiton.validator.bean.list.BeanListValidator> listValidators) |
protected boolean |
isAutoSelectOnFocus(JComponent comp) |
DefaultComboBoxModel |
newComboModel(Object... items)
Deprecated.
since 2.10, should move this to
SwingUtil.newComboModel(Object...) |
protected <O> ListCellRenderer |
newListCellRender(Class<O> type) |
protected <O> ListCellRenderer |
newListCellRender(Class<O> type,
String name) |
protected <O> ListCellRenderer |
newListCellRender(org.nuiton.decorator.Decorator<O> decorator) |
protected TableCellRenderer |
newNumberCellRenderer(TableCellRenderer defaultRenderer) |
protected <O> TableCellRenderer |
newTableCellRender(Class<O> type) |
protected <O> TableCellRenderer |
newTableCellRender(Class<O> type,
String name) |
protected <O> TableCellRenderer |
newTableCellRender(org.nuiton.decorator.Decorator<O> decorator) |
abstract void |
onCloseUI() |
void |
openDialog(ApplicationUI dialogContent,
String title,
Dimension dim) |
void |
openRowMenu(KeyEvent e,
JPopupMenu popup) |
protected boolean |
quitInternalScreen(boolean modelIsValid,
boolean modelIsModify,
String askGiveUpMessage,
String askSaveMessage,
Action saveAction)
Deprecated.
since 2.11, use now
quitScreen(boolean, boolean, String, String, Action, boolean) |
protected boolean |
quitScreen(boolean modelIsValid,
boolean modelIsModify,
String askGiveUpMessage,
String askSaveMessage,
Action saveAction)
Deprecated.
since 2.11, use now
quitScreen(boolean, boolean, String, String, Action, boolean) |
protected boolean |
quitScreen(boolean modelIsValid,
boolean modelIsModify,
String askGiveUpMessage,
String askSaveMessage,
Action saveAction,
boolean runInternal) |
void |
selectListData(ListSelectionEvent event,
String property) |
void |
setBoolean(ItemEvent event,
String property) |
void |
setDate(ActionEvent event,
String property) |
void |
setFile(ActionEvent event,
String property) |
void |
setText(KeyEvent event,
String property) |
void |
showSuccessMessage(String title,
String message) |
protected boolean |
useListValidators() |
protected boolean |
useSimpleValidators() |
protected UI extends ApplicationUI<M,?> ui
public static final String CONFIRMATION_FORMAT
public abstract void onCloseUI()
@Deprecated public abstract SwingValidator<M> getValidator()
getSimpleValidators() and getListValidators() initialized in initUI(ApplicationUI) method.public abstract Component getTopestUI()
public abstract <E> org.nuiton.decorator.Decorator<E> getDecorator(Class<E> beanType, String decoratorContext)
protected void beforeOpenPopup(int modelRowIndex,
int modelColumnIndex)
modelRowIndex - selected row index (or lowest selected one)modelColumnIndex - selected column index@Deprecated public DefaultComboBoxModel newComboModel(Object... items)
SwingUtil.newComboModel(Object...)public final M getModel()
public final UI getUI()
public Set<org.nuiton.validator.bean.simple.SimpleBeanValidator> getSimpleValidators()
public Set<org.nuiton.validator.bean.list.BeanListValidator> getListValidators()
public void beforeInit(UI ui)
beforeInit in interface UIHandler<UI extends ApplicationUI<M,?>>public ApplicationUIContext getContext()
public void setFile(ActionEvent event, String property)
public void setDate(ActionEvent event, String property)
public void selectListData(ListSelectionEvent event, String property)
public void openDialog(ApplicationUI dialogContent, String title, Dimension dim)
public void closeDialog()
public int askSaveBeforeLeaving(String message)
public boolean askCancelEditBeforeLeaving(String message)
protected void addHighlighters(org.jdesktop.swingx.JXTable table)
public void autoSelectRowInTable(MouseEvent e, JPopupMenu popup)
public void openRowMenu(KeyEvent e, JPopupMenu popup)
protected void initUIComponent(Object component)
protected void initUI(UI ui)
protected void initComponentToFocus(Component ui)
protected abstract JComponent getComponentToFocus()
protected void initTextField(JTextField jTextField)
protected void initLabel(JLabel jLabel)
protected void initButton(AbstractButton abstractButton)
protected void affectKeyStroke(AbstractButton abstractButton, String key)
protected <E> void initBeanFilterableComboBox(BeanFilterableComboBox<E> comboBox, List<E> data, E selectedData)
comboBox - le component graphique à initialiserprotected <E> void initBeanFilterableComboBox(BeanFilterableComboBox<E> comboBox, List<E> data, E selectedData, String decoratorContext)
protected <E> void initBeanComboBox(BeanComboBox<E> comboBox, List<E> data, E selectedData)
protected <E> void initBeanComboBox(BeanComboBox<E> comboBox, List<E> data, E selectedData, String decoratorContext)
protected <E> void initBeanList(BeanDoubleList<E> list, List<E> data, List<E> selectedData, org.nuiton.decorator.Decorator<E> selectedDecorator)
list - le component graphique à initialiserdata - la liste des données à mettre dans la liste de gaucheselectedData - la liste des données à mettre dans la liste de droiteprotected <E> void initBeanList(BeanDoubleList<E> list, List<E> data, List<E> selectedData)
list - le component graphique à initialiserdata - la liste des données à mettre dans la liste de gaucheselectedData - la liste des données à mettre dans la liste de droiteprotected void initNumberEditor(NumberEditor editor)
protected void initTimeEditor(SimpleTimeEditor editor)
protected void initCoordinateDMSEditor(DmsCoordinateEditor editor)
protected void initCoordinateDMDEditor(DmdCoordinateEditor editor)
protected void initDatePicker(org.jdesktop.swingx.JXDatePicker picker)
protected void initScrollPane(JScrollPane scrollPane)
protected void initValidators(Set<org.nuiton.validator.bean.simple.SimpleBeanValidator> simpleValidators, Set<org.nuiton.validator.bean.list.BeanListValidator> listValidators)
protected boolean useListValidators()
protected boolean useSimpleValidators()
protected boolean isAutoSelectOnFocus(JComponent comp)
protected void addAutoSelectOnFocus(JTextField jTextField)
@Deprecated protected boolean quitScreen(boolean modelIsValid, boolean modelIsModify, String askGiveUpMessage, String askSaveMessage, Action saveAction)
quitScreen(boolean, boolean, String, String, Action, boolean)@Deprecated protected boolean quitInternalScreen(boolean modelIsValid, boolean modelIsModify, String askGiveUpMessage, String askSaveMessage, Action saveAction)
quitScreen(boolean, boolean, String, String, Action, boolean)protected boolean quitScreen(boolean modelIsValid,
boolean modelIsModify,
String askGiveUpMessage,
String askSaveMessage,
Action saveAction,
boolean runInternal)
protected String decorate(Serializable object)
protected String decorate(Serializable object, String context)
protected <O> ListCellRenderer newListCellRender(Class<O> type)
protected <O> ListCellRenderer newListCellRender(Class<O> type, String name)
protected <O> ListCellRenderer newListCellRender(org.nuiton.decorator.Decorator<O> decorator)
protected <B> void changeValidatorContext(String newContext, SwingValidator<B> validator)
protected <R> org.jdesktop.swingx.table.TableColumnExt addColumnToModel(TableColumnModel model, TableCellEditor editor, TableCellRenderer renderer, ColumnIdentifier<R> identifier)
protected <R> org.jdesktop.swingx.table.TableColumnExt addColumnToModel(TableColumnModel model, ColumnIdentifier<R> identifier)
protected <R> org.jdesktop.swingx.table.TableColumnExt addFloatColumnToModel(TableColumnModel model, ColumnIdentifier<R> identifier, String numberPattern, boolean sign, JTable table)
protected <R> org.jdesktop.swingx.table.TableColumnExt addFloatColumnToModel(TableColumnModel model, ColumnIdentifier<R> identifier, String numberPattern, JTable table)
protected <R> org.jdesktop.swingx.table.TableColumnExt addIntegerColumnToModel(TableColumnModel model, ColumnIdentifier<R> identifier, String numberPattern, boolean sign, JTable table)
protected <R> org.jdesktop.swingx.table.TableColumnExt addIntegerColumnToModel(TableColumnModel model, ColumnIdentifier<R> identifier, String numberPattern, JTable table)
protected TableCellRenderer newNumberCellRenderer(TableCellRenderer defaultRenderer)
protected <R> org.jdesktop.swingx.table.TableColumnExt addBooleanColumnToModel(TableColumnModel model, ColumnIdentifier<R> identifier, JTable table)
protected <R,B> org.jdesktop.swingx.table.TableColumnExt addComboDataColumnToModel(TableColumnModel model, ColumnIdentifier<R> identifier, org.nuiton.decorator.Decorator<B> decorator, List<B> data)
protected <O> TableCellRenderer newTableCellRender(Class<O> type)
protected <O> TableCellRenderer newTableCellRender(Class<O> type, String name)
protected <O> TableCellRenderer newTableCellRender(org.nuiton.decorator.Decorator<O> decorator)
protected void incrementsMessage(String message)
Copyright © 2008–2016 CodeLutin. All rights reserved.