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 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)
           
static ListCellRenderer get2DigitsRenderer()
           
static
<E extends Component>
E
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
<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 org.nuiton.wikitty.WikittyProxy getProxy()
           
static
<E extends org.nuiton.wikitty.BusinessEntity>
ComboBoxModel
getQueryMakersModel(Class<E> clazz, String ext, List<E> entities)
           
static ListModel getSendingModel(Map<?,Sending> entity)
           
static ListCellRenderer getStatusCellRenderer()
           
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 refreshNodeLater(AdminNavigationTreeHelper helper, String id)
          Wait node appair to select it
static void selectNodeLater(jaxx.runtime.swing.nav.NavHelper helper, String id)
          Wait node appair 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

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(URI uri)
                      throws IOException
Throws:
IOException

browseURI

public static void browseURI(String uri)
                      throws IOException
Throws:
IOException

browseURI

public static void browseURI(URL url)
                      throws IOException
Throws:
IOException

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()

getProxy

public static org.nuiton.wikitty.WikittyProxy getProxy()

getDataService

public static VradiDataService getDataService()

getXmlStreamsModel

public static EntityModel getXmlStreamsModel()

getStatusesModel

public static ListModel getStatusesModel(boolean firstNull)

getStatusCellRenderer

public static ListCellRenderer getStatusCellRenderer()

getFormTypesModel

public static ComboBoxModel getFormTypesModel()

getFormTypesModel

public static ComboBoxModel getFormTypesModel(boolean firstNull)

getQueryMakersModel

public static <E extends org.nuiton.wikitty.BusinessEntity> ComboBoxModel getQueryMakersModel(Class<E> clazz,
                                                                                              String ext,
                                                                                              List<E> entities)

getSendingModel

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

getContentIfExist

public static <E extends Component> E getContentIfExist(jaxx.runtime.swing.CardLayout2 contentLayout,
                                                        JPanel content,
                                                        Class<E> uiClass)
Get content if exist in content, else return null


openFormPopup

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

selectNodeLater

public static void selectNodeLater(jaxx.runtime.swing.nav.NavHelper helper,
                                   String id)
Wait node appair to select it

Parameters:
helper - helper to select node
id - to select

refreshNodeLater

public static void refreshNodeLater(AdminNavigationTreeHelper helper,
                                    String id)
Wait node appair to select it

Parameters:
helper - helper to select node
id - to select

addThesaurusExpandOnClickListener

public static void addThesaurusExpandOnClickListener(JTree tree)
Add a listener of tree selection model to expand a new selected node when it is selected.

Parameters:
tree - the tree to treate

addThesaurusExpandOnClickListener

public 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.

Parameters:
treeTable - the treeTable to treate


Copyright © 2009-2010 JurisMarches. All Rights Reserved.