com.jurismarches.vradi.ui
Class UIHelper

java.lang.Object
  extended by jaxx.runtime.Util
      extended by jaxx.runtime.SwingUtil
          extended by com.jurismarches.vradi.ui.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
           
 
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.Util
PARENT
 
Method Summary
static void browseURI(java.lang.String uri)
           
static void createEmail(java.lang.String emailAdress)
           
static void exportToCSV(java.io.File file, OfferListTableModel model)
           
static javax.swing.ListCellRenderer get2DigitsRenderer()
           
static
<T> T
getHandler(jaxx.runtime.JAXXContext context, java.lang.Class<T> handlerClass)
           
static javax.swing.ComboBoxModel getHourModel()
           
static javax.swing.ComboBoxModel getMinuteModel()
           
static javax.swing.ComboBoxModel getNumberComboBoxModel(int nbData)
           
static javax.swing.ListCellRenderer getTranslationListCellRenderer()
           
static void openAddressInBrowser(java.lang.String address)
           
static java.io.File openFileChooser(java.lang.String fileExtension, java.lang.String description, java.awt.Component component, java.lang.String validationLabel)
           
static void setI18nTableHeaderRenderer(javax.swing.JTable table, java.lang.String... libelles)
           
static void updateListSelection(javax.swing.JList list, java.lang.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, boxComponentWithJxLayer, center, computeTableColumnWidth, createActionIcon, createI18nIcon, createIcon, createImageIcon, expandTree, 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, setComponentHeight, setComponentWidth, setTableColumnEditor, setTableColumnRenderer, setText
 
Methods inherited from class jaxx.runtime.Util
applyDataBinding, applyDataBinding, assignment, assignment, assignment, assignment, assignment, assignment, assignment, assignment, assignment, castList, checkJAXXContextEntry, decodeCompressedJAXXObjectDescriptor, decodeJAXXObjectDescriptor, findJaxxPropertyChangeListener, getDataBindingUpdateListener, getEventListener, getEventListener, getStringValue, initContext, newContextEntryDef, newContextEntryDef, newListContextEntryDef, newListContextEntryDef, 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(javax.swing.JList list,
                                       java.lang.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(javax.swing.JTable table,
                                              java.lang.String... libelles)

openAddressInBrowser

public static void openAddressInBrowser(java.lang.String address)

browseURI

public static void browseURI(java.lang.String uri)

createEmail

public static void createEmail(java.lang.String emailAdress)

exportToCSV

public static void exportToCSV(java.io.File file,
                               OfferListTableModel model)

openFileChooser

public static java.io.File openFileChooser(java.lang.String fileExtension,
                                           java.lang.String description,
                                           java.awt.Component component,
                                           java.lang.String validationLabel)

getTranslationListCellRenderer

public static javax.swing.ListCellRenderer getTranslationListCellRenderer()

getHandler

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

getNumberComboBoxModel

public static javax.swing.ComboBoxModel getNumberComboBoxModel(int nbData)

getHourModel

public static javax.swing.ComboBoxModel getHourModel()

getMinuteModel

public static javax.swing.ComboBoxModel getMinuteModel()

get2DigitsRenderer

public static javax.swing.ListCellRenderer get2DigitsRenderer()


Copyright © 2009-2010 JurisMarches. All Rights Reserved.