com.jurismarches.vradi.ui.helpers
Class UIHelper

java.lang.Object
  extended by jaxx.runtime.JAXXUtil
      extended by jaxx.runtime.SwingUtil
          extended by com.jurismarches.vradi.ui.helpers.UIHelper

public class UIHelper
extends jaxx.runtime.SwingUtil

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 browseURI(String uri)
           
static void browseURI(URL url)
           
static void createEmail(String emailAdress)
           
static void exportToCSV(File file, OfferListTableModel model)
           
static ListCellRenderer get2DigitsRenderer()
           
static EntityModel getFormTypesModel()
           
static FormTypeNameModel getFormTypesNameModel(AdminHandler handler)
           
static
<T> T
getHandler(jaxx.runtime.JAXXContext context, Class<T> handlerClass)
           
static ComboBoxModel getHourModel()
           
static ComboBoxModel getMinuteModel()
           
static ComboBoxModel getNumberComboBoxModel(int nbData)
           
static ComboBoxModel getNumberComboBoxModel(int startIndex, int nbData)
           
static
<E> ComboBoxModel
getQueryMakersModel(List<E> entities)
           
static ListModel getSendingModel(Map<?,VradiSendingDTO> entity)
           
static ListModel getStatusesModel(boolean firstNull)
           
static ListCellRenderer getTranslationListCellRenderer()
           
static ListCellRenderer getTranslationRenderer()
           
static EntityModel getXmlStreamsModel()
           
static void openAddressInBrowser(String address)
           
static File openFileChooser(String fileExtension, String description, Component component, String validationLabel)
           
static void openFormPopup(jaxx.runtime.JAXXContext context, Form form)
           
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, 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, 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

updateListSelection

public static void updateListSelection(JList list,
                                       Object value)
Met à jour le modèle de sélection list donnée avec l'objet value entrant.

value represente normalement une collection de données.

Parameters:
list - la liste à updater
value - la liste des valeurs de la selection de la liste.

setI18nTableHeaderRenderer

public static void setI18nTableHeaderRenderer(JTable table,
                                              String... libelles)

openAddressInBrowser

public static void openAddressInBrowser(String address)

browseURI

public static void browseURI(String uri)

browseURI

public static void browseURI(URL url)

createEmail

public static void createEmail(String emailAdress)
                        throws IOException,
                               URISyntaxException,
                               UnsupportedOperationException
Throws:
IOException
URISyntaxException
UnsupportedOperationException

exportToCSV

public static void exportToCSV(File file,
                               OfferListTableModel model)

openFileChooser

public static File openFileChooser(String fileExtension,
                                   String description,
                                   Component component,
                                   String validationLabel)

getTranslationListCellRenderer

public static ListCellRenderer getTranslationListCellRenderer()

getHandler

public static <T> T getHandler(jaxx.runtime.JAXXContext context,
                               Class<T> handlerClass)

getNumberComboBoxModel

public static ComboBoxModel getNumberComboBoxModel(int startIndex,
                                                   int nbData)

getNumberComboBoxModel

public static ComboBoxModel getNumberComboBoxModel(int nbData)

getHourModel

public static ComboBoxModel getHourModel()

getMinuteModel

public static ComboBoxModel getMinuteModel()

get2DigitsRenderer

public static ListCellRenderer get2DigitsRenderer()

getTranslationRenderer

public static ListCellRenderer getTranslationRenderer()

getXmlStreamsModel

public static EntityModel getXmlStreamsModel()

getStatusesModel

public static ListModel getStatusesModel(boolean firstNull)

getFormTypesModel

public static EntityModel getFormTypesModel()

getFormTypesNameModel

public static FormTypeNameModel getFormTypesNameModel(AdminHandler handler)

getQueryMakersModel

public static <E> ComboBoxModel getQueryMakersModel(List<E> entities)

getSendingModel

public static ListModel getSendingModel(Map<?,VradiSendingDTO> entity)

openFormPopup

public static void openFormPopup(jaxx.runtime.JAXXContext context,
                                 Form form)


Copyright © 2009-2010 JurisMarches. All Rights Reserved.