|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.JAXXUtil
jaxx.runtime.SwingUtil
com.jurismarches.vradi.ui.helpers.UIHelper
public class UIHelper
Classe de méthodes utiles pour les ui.
User: chemit Date: 23 nov. 2009 Time: 11:51:14
| Nested Class Summary | |
|---|---|
static class |
UIHelper.NumberFormatterFactory
NumberFormatterFactory creates a new NumberFormatter for Integer of variable length. |
| Nested classes/interfaces inherited from class jaxx.runtime.SwingUtil |
|---|
jaxx.runtime.SwingUtil.TabbedPaneIterator<O> |
| Field Summary |
|---|
| Fields inherited from class jaxx.runtime.SwingUtil |
|---|
COLOR_PREFIX, DEFAULT_ICON_PATH, DEFAULT_ICON_PATH_PROPERTY, ICON_PREFIX |
| Fields inherited from class jaxx.runtime.JAXXUtil |
|---|
PARENT |
| Method Summary | ||
|---|---|---|
static void |
addThesaurusExpandOnClickListener(JTree tree)
Add a listener of tree selection model to expand a new selected node when it is selected. |
|
static void |
addThesaurusExpandOnClickListener(org.jdesktop.swingx.JXTreeTable treeTable)
Add a listener of tree selection model to expand a new selected node when it is selected. |
|
static void |
browseURI(String uri)
|
|
static void |
browseURI(URI uri)
|
|
static void |
browseURI(URL url)
|
|
static void |
createEmail(String emailAdress)
|
|
static void |
exportToCSV(File file,
OfferListTableModel model)
Export la table des résultats de recherche au format CSV. |
|
static ListCellRenderer |
get2DigitsRenderer()
Get time list renderer (hour or minutes). |
|
static
|
getContentIfExist(jaxx.runtime.swing.CardLayout2 contentLayout,
JPanel content,
Class<E> uiClass)
Get content if exist in content, else return null |
|
static VradiDataService |
getDataService()
|
|
static ComboBoxModel |
getFormTypesModel()
|
|
static ComboBoxModel |
getFormTypesModel(boolean firstNull)
|
|
static
|
getHandler(jaxx.runtime.JAXXContext context,
Class<T> handlerClass)
|
|
static ComboBoxModel |
getHourModel()
Return an initialized ComboBoxModel with int from 0 to 24. |
|
static ComboBoxModel |
getMinuteModel()
Return an initialized ComboBoxModel with int from 0 to 60. |
|
static ComboBoxModel |
getNumberComboBoxModel(int nbData)
Return an initialized ComboBoxModel with int from 0 to nbData. |
|
static ComboBoxModel |
getNumberComboBoxModel(int startIndex,
int nbData)
Return an initialized ComboBoxModel with int from startIndex and filled with nbData. |
|
static ListCellRenderer |
getStatusCellRenderer()
Return status cell renderer (translate i18n status name key). |
|
static ListModel |
getStatusesModel(boolean firstNull)
|
|
static ListCellRenderer |
getTranslationListCellRenderer()
|
|
static ListCellRenderer |
getTranslationRenderer()
Return i18n translation for value. |
|
static EntityModel<XmlStream> |
getXmlStreamsModel()
|
|
static void |
openAddressInBrowser(String address)
Ouvre un navigateur sur google maps. |
|
static File |
openFileChooser(String fileExtension,
String description,
Component component,
String validationLabel)
Ouvre un file chooser configuré sur un certain type de fichier et retourne le fichier choisit par l'utilisateur. |
|
static void |
refreshNodeLater(AdminNavigationTreeHelper helper,
String id)
Wait node appear to select it |
|
static void |
selectNodeLater(jaxx.runtime.swing.nav.NavHelper helper,
String id)
Wait to select it |
|
static void |
setI18nTableHeaderRenderer(JTable table,
String... libelles)
|
|
static void |
updateListSelection(JList list,
Object value)
Met à jour le modèle de sélection list donnée avec l'objet value entrant. |
|
| Methods inherited from class jaxx.runtime.SwingUtil |
|---|
addExpandOnClickListener, addExpandOnClickListener, boxComponentWithJxLayer, center, computeTableColumnWidth, createActionIcon, createI18nIcon, createIcon, createImageIcon, expandTree, expandTreeTable, fillComboBox, fillComboBox, fillList, findComponentAt, fixTableColumnWidth, getDeepestObjectAt, getLayer, getLayeredComponents, getParentContainer, getUIManagerActionIcon, getUIManagerIcon, initNimbusLoookAndFeel, isLayered, loadUIConfig, loadUIConfig, lookingForEditor, newBooleanTableCellRenderer, newDeleteCellRenderer, newEmptyNumberTableCellRenderer, newEnumTableCellRenderer, newLabel, newMaxXDimension, newMaxXYDimension, newMaxYDimension, newMinDimension, newStringTableCellRenderer, newTabbedPaneIterator, openLink, openLink, setComponentHeight, setComponentWidth, setTableColumnEditor, setTableColumnRenderer, setText |
| Methods inherited from class jaxx.runtime.JAXXUtil |
|---|
applyDataBinding, applyDataBinding, assignment, assignment, assignment, assignment, assignment, assignment, assignment, assignment, assignment, castList, castMap, checkJAXXContextEntries, checkJAXXContextEntry, decodeCompressedJAXXObjectDescriptor, decodeJAXXObjectDescriptor, destroy, destroy, findJaxxPropertyChangeListener, getDataBindingUpdateListener, getEventListener, getEventListener, getStringValue, initContext, invokeConstructor, newContextEntryDef, newContextEntryDef, newListContextEntryDef, newListContextEntryDef, newMapContextEntryDef, processDataBinding, removeDataBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void updateListSelection(JList list,
Object value)
list donnée avec l'objet value entrant.
value represente normalement une collection de données.
list - la liste à updatervalue - la liste des valeurs de la selection de la liste.
public static void setI18nTableHeaderRenderer(JTable table,
String... libelles)
public static void openAddressInBrowser(String address)
address - address to browse
public static void browseURI(URI uri)
throws IOException
IOException
public static void browseURI(String uri)
throws IOException
IOException
public static void browseURI(URL url)
throws IOException
IOException
public static void createEmail(String emailAdress)
throws IOException,
URISyntaxException,
UnsupportedOperationException
IOException
URISyntaxException
UnsupportedOperationException
public static void exportToCSV(File file,
OfferListTableModel model)
file - file to export tomodel - model to export
public static File openFileChooser(String fileExtension,
String description,
Component component,
String validationLabel)
fileExtension - extension with begin "."description - filter descriptioncomponent - parent componentvalidationLabel - ok button label
nullpublic static ListCellRenderer getTranslationListCellRenderer()
public static <T> T getHandler(jaxx.runtime.JAXXContext context,
Class<T> handlerClass)
public static ComboBoxModel getNumberComboBoxModel(int startIndex,
int nbData)
startIndex - start indexnbData - nb data
public static ComboBoxModel getNumberComboBoxModel(int nbData)
nbData - nb data
public static ComboBoxModel getHourModel()
public static ComboBoxModel getMinuteModel()
public static ListCellRenderer get2DigitsRenderer()
public static ListCellRenderer getTranslationRenderer()
value.
public static VradiDataService getDataService()
public static EntityModel<XmlStream> getXmlStreamsModel()
public static ListModel getStatusesModel(boolean firstNull)
public static ListCellRenderer getStatusCellRenderer()
public static ComboBoxModel getFormTypesModel()
public static ComboBoxModel getFormTypesModel(boolean firstNull)
public static <E extends Component> E getContentIfExist(jaxx.runtime.swing.CardLayout2 contentLayout,
JPanel content,
Class<E> uiClass)
public static void selectNodeLater(jaxx.runtime.swing.nav.NavHelper helper,
String id)
helper - helper to select nodeid - to select
public static void refreshNodeLater(AdminNavigationTreeHelper helper,
String id)
helper - helper to select nodeid - to selectpublic static void addThesaurusExpandOnClickListener(JTree tree)
tree - the tree to treatepublic static void addThesaurusExpandOnClickListener(org.jdesktop.swingx.JXTreeTable treeTable)
treeTable - the treeTable to treate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||