Class PRSManager
java.lang.Object
net.thevpc.common.swing.prs.PRSManager
- Author:
- Taha BEN SALAH (taha.bensalah@gmail.com) %creationtime 13 juil. 2006 22:14:21
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddIconSetSupport(Action a, String id) static voidaddIconSetSupport(Action a, String id, ActionIconSetUpdater updater) static voidaddIconSetSupport(JComponent c, String id) static voidstatic voidaddMessageSetSupport(Action a, String id) static voidaddMessageSetSupport(Action a, String id, ActionMessageSetUpdater updater) static voidaddMessageSetSupport(JComponent c, String id) static voidstatic voidaddSupport(Action a, String id) static voidaddSupport(Action a, String messageId, String iconId) static voidaddSupport(JComponent a, String id) static voidaddSupport(JComponent a, String messageId, String iconId) static voidaddSupport(JComponent a, String id, ComponentMessageSetUpdater mu, ComponentIconSetUpdater iu) static voidaddSupport(JComponent a, String id, ComponentResourcesUpdater u) static voidstatic voidapplyOrientation(Component c, MessageSet messageSet) static voidconfigure(JComponent component, ResourceSetHolder resourceSetHolder) static PRSBordercreateBorder(String id) static PRSBordercreateBorder(String id, TitledBorder titledBorder) static JButtoncreateButton(String id) static JCheckBoxcreateCheck(String id, boolean selected) static JCheckBoxMenuItemstatic JRadioButtonMenuItemstatic JComboBoxcreateCombo(String name, String valuesKey, Object[] values, int defaultSelected) static JLabelcreateLabel(String id) static JMenucreateMenu(String id) static JMenuItemcreateMenuItem(String id) static JRadioButtoncreateRadio(String id, boolean selected) static JToggleButtonstatic IconSetgetActionIconSet(Action action, IconSet defaultIconSet) static ArtSetstatic ArtSet[]static IcongetComponentIcon(JComponent component, String icon) static IconSetgetComponentIconSet(JComponent component, IconSet defaultIconSet) static ArtSetstatic ComponentIconSetUpdaterstatic ComponentMessageSetUpdaterstatic Iconstatic Iconstatic Iconstatic IconSetstatic IconSetgetIconSet(String iconSetName) static IconSetDescriptor[]static IconSetFactorystatic booleanstatic booleanstatic booleanstatic voidloadAvailableIconSets(URL repository, ClassLoader parent, Object owner, UrlCacheManager urlCacheManager, LoggerProvider loggerProvider) static voidloadAvailableMessageSets(URL repository, ClassLoader parent, Object owner, UrlCacheManager urlCacheManager) static IconSetDescriptor[]lookupIconsetDescriptors(URL url, ClassLoader parent, Object owner, UrlCacheManager urlCacheManager, LoggerProvider loggerProvider) static voidregisterArtSets(URL url, ClassLoader parent, Object owner) static voidregisterIconSet(URL url, ClassLoader parent, Object owner, UrlCacheManager urlCacheManager, LoggerProvider loggerProvider) static voidregisterIconSet(IconSetDescriptor desc, LoggerProvider loggerProvider) static voidregisterMessageSet(URL messageSetURL, ClassLoader parent, Object owner, UrlCacheManager urlCacheManager, LoggerProvider loggerProvider) static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidsetActionIconSet(Action a, IconSet messageSet) static voidsetActionMessageSet(Action a, MessageSet messageSet) static voidsetComponentIconSet(JComponent component, String iconSetName) static voidsetComponentIconSet(JComponent component, IconSet iconSet) static voidsetComponentMessageSet(JComponent component, MessageSet messageSet) static voidsetComponentResourceSetHolder(JComponent component, ResourceSetHolder h) static voidstatic voidstatic voidstatic voidsetIconSet(String iconSetName) static voidsetIconSet(String iconSetName, Locale locale) static voidsetIconSet(IconSet iconSet) static voidstatic voidsetShortNamePreferred(AbstractButton b, boolean enable) static voidupdate(Component component, MessageSet messageSet, IconSet iconSet) static voidupdate(Component component, ResourceSetHolder holder) static voidupdate(Collection<? extends Action> actions, Component component, MessageSet messageSet, IconSet iconSet) static voidupdate(Collection<? extends Action> actions, Component component, ResourceSetHolder holder) static voidupdate(Collection<Action> actions, Component component, IconSet iconSet) static voidupdate(Collection<Action> actions, Component component, MessageSet messageSet) static voidupdate(Collection<Action> actions, MessageSet messageSet, IconSet iconSet) static voidupdate(Collection<Action> actions, ResourceSetHolder holder) static voidupdate(Action[] actions, Component component, ResourceSetHolder holder) static voidupdate(Action[] actions, ResourceSetHolder holder) static voidupdate(Action action, MessageSet messageSet, IconSet iconSet) static voidupdate(Action action, ResourceSetHolder holder) static voidupdateActionIconSet(Action action, IconSet iconSet) static voidupdateActionsIconSet(Collection<? extends Action> actions, IconSet iconSet) static voidstatic voidupdateComponentTreeIconSet(Component c, IconSet defaultIconSet) static voidupdateOnFirstComponentShown(JComponent component, ResourceSetHolder holder) static voidvisit(ComponentTreeVisitor visitor, Component c, Object userObject)
-
Constructor Details
-
PRSManager
public PRSManager()
-
-
Method Details
-
update
public static void update(Collection<? extends Action> actions, Component component, ResourceSetHolder holder) -
update
-
updateOnFirstComponentShown
-
update
-
update
-
update
-
update
-
update
-
update
-
update
-
update
public static void update(Collection<? extends Action> actions, Component component, MessageSet messageSet, IconSet iconSet) -
update
-
update
-
createLabel
-
createBorder
-
createBorder
-
createButton
-
createToggleButton
-
createCheck
-
createMenu
-
createMenuItem
-
createCheckBoxMenuItem
-
createCheckButtonMenuItem
-
createRadio
-
addSupport
-
addSupport
-
addSupport
-
addSupport
-
addSupport
public static void addSupport(JComponent a, String id, ComponentMessageSetUpdater mu, ComponentIconSetUpdater iu) -
addSupport
-
applyOrientation
-
applyOrientation
-
createCombo
-
configure
-
addMessageSetSupport
-
addMessageSetSupport
-
removeMessageSetSupport
-
removeSupport
-
removeSupport
-
removeMessageSetSupport
-
addMessageSetSupport
-
loadAvailableMessageSets
public static void loadAvailableMessageSets(URL repository, ClassLoader parent, Object owner, UrlCacheManager urlCacheManager) throws IOException - Throws:
IOException
-
setComponentMessageSet
-
addIconSetSupport
-
addMessageSetSupport
-
setActionMessageSet
-
setActionIconSet
-
getIcon
public static Icon getIcon(String iconSetName, String icon) throws IconSetNotFoundException, IconNotFoundException -
getIcon
public static Icon getIcon(String icon, Locale locale) throws IconSetNotFoundException, IconNotFoundException -
getIcon
public static Icon getIcon(String iconSetName, String icon, Locale locale) throws IconSetNotFoundException, IconNotFoundException -
getComponentIconSet
public static IconSet getComponentIconSet(JComponent component, IconSet defaultIconSet) throws IconSetNotFoundException, IconNotFoundException -
getActionIconSet
public static IconSet getActionIconSet(Action action, IconSet defaultIconSet) throws IconSetNotFoundException, IconNotFoundException -
setComponentResourceSetHolder
-
setComponentIconSet
-
setComponentIconSet
-
getComponentIcon
public static Icon getComponentIcon(JComponent component, String icon) throws IconSetNotFoundException, IconNotFoundException -
getIconSetFactory
-
setIconSetFactory
-
getIconSet
-
getIconSet
-
setIconSet
-
setIconSet
-
setIconSet
-
registerIconSet
-
getIconSetDescriptors
-
updateActionsIconSet
-
updateComponentTreeIconSet
-
updateComponentTreeIconSet
-
getDefaultComponentIconSetUpdater
-
setDefaultComponentIconSetUpdater
-
setDefaultComponentMessageSetUpdater
-
getDefaultComponentMessageSetUpdater
-
addIconSetSupport
-
addIconSetSupport
-
removeIconSetSupport
-
removeIconSetSupport
-
addIconSetSupport
-
updateActionIconSet
-
isIconSetSupported
-
isIconSetSupported
-
lookupIconsetDescriptors
public static IconSetDescriptor[] lookupIconsetDescriptors(URL url, ClassLoader parent, Object owner, UrlCacheManager urlCacheManager, LoggerProvider loggerProvider) throws IOException - Throws:
IOException
-
registerMessageSet
public static void registerMessageSet(URL messageSetURL, ClassLoader parent, Object owner, UrlCacheManager urlCacheManager, LoggerProvider loggerProvider) throws IOException - Throws:
IOException
-
registerIconSet
public static void registerIconSet(URL url, ClassLoader parent, Object owner, UrlCacheManager urlCacheManager, LoggerProvider loggerProvider) throws IOException - Throws:
IOException
-
loadAvailableIconSets
public static void loadAvailableIconSets(URL repository, ClassLoader parent, Object owner, UrlCacheManager urlCacheManager, LoggerProvider loggerProvider) throws IOException - Throws:
IOException
-
visit
-
isShortNamePreferred
-
setShortNamePreferred
-
registerArtSets
- Throws:
IOException
-
getArtSet
-
getArtSets
-
setCurrentArtSet
-
getCurrentArtSet
-