org.beanfabrics.swing.customizer.util
Class CustomizerUtil

java.lang.Object
  extended by org.beanfabrics.swing.customizer.util.CustomizerUtil

public class CustomizerUtil
extends java.lang.Object

ATTENTION: This class is experimental and should only be used inside beanfabrics.

The CustomizerUtil is a utility class used by JavaBeans Customizer classes in Beanfabrics.


Method Summary
static PathNode asRootNode(java.lang.Class<? extends PresentationModel> pmClass)
           
static PathChooserController createPathChooser(Context context, PathContext pathContext, Path initialPath)
           
static java.lang.Class<? extends PresentationModel> getDeclaredPmTypeFromView(java.lang.Class<? extends View<?>> viewClass)
           
static java.lang.Class<? extends PresentationModel> getDeclaredPmTypeFromView(View<?> view)
           
static java.lang.Class<? extends PresentationModel> getElementTypeOfSubscribedOrActualIListPM(ModelSubscriber subscriber)
           
static PathContext getPathContextToCustomizeModelSubscriber(ModelSubscriber theSubscriber)
           
static PathContext getPathContextToCustomizeModelSubscriber(ModelSubscriber theSubscriber, java.lang.Class<? extends PresentationModel> expectedModelType)
           
static PathNode getProvidedRootNode(ModelSubscriber subscriber)
           
static PathNode getRootNodeOfActualOrDeclaredPMFromView(View<?> view)
           
static RootWindowLocator getRootWindowLocator(java.awt.Component comp)
           
static PathNode getSubscribedNode(ModelSubscriber subscriber)
           
static TypeInfo getTypeInfo(java.lang.Class<? extends PresentationModel> pmClass)
           
static boolean isAquaLookAndFeel()
           
static boolean isMacOSX()
           
static boolean isWindows()
           
static java.awt.Window locateRootWindow(Context context)
           
static java.awt.Window locateRootWindow(PresentationModel pm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isWindows

public static boolean isWindows()

isMacOSX

public static boolean isMacOSX()

isAquaLookAndFeel

public static boolean isAquaLookAndFeel()

createPathChooser

public static PathChooserController createPathChooser(Context context,
                                                      PathContext pathContext,
                                                      Path initialPath)

getRootWindowLocator

public static RootWindowLocator getRootWindowLocator(java.awt.Component comp)

locateRootWindow

public static java.awt.Window locateRootWindow(PresentationModel pm)

locateRootWindow

public static java.awt.Window locateRootWindow(Context context)

getTypeInfo

public static TypeInfo getTypeInfo(java.lang.Class<? extends PresentationModel> pmClass)

asRootNode

public static PathNode asRootNode(java.lang.Class<? extends PresentationModel> pmClass)

getDeclaredPmTypeFromView

public static java.lang.Class<? extends PresentationModel> getDeclaredPmTypeFromView(View<?> view)

getDeclaredPmTypeFromView

public static java.lang.Class<? extends PresentationModel> getDeclaredPmTypeFromView(java.lang.Class<? extends View<?>> viewClass)

getElementTypeOfSubscribedOrActualIListPM

public static java.lang.Class<? extends PresentationModel> getElementTypeOfSubscribedOrActualIListPM(ModelSubscriber subscriber)

getSubscribedNode

public static PathNode getSubscribedNode(ModelSubscriber subscriber)

getProvidedRootNode

public static PathNode getProvidedRootNode(ModelSubscriber subscriber)

getRootNodeOfActualOrDeclaredPMFromView

public static PathNode getRootNodeOfActualOrDeclaredPMFromView(View<?> view)

getPathContextToCustomizeModelSubscriber

public static PathContext getPathContextToCustomizeModelSubscriber(ModelSubscriber theSubscriber)

getPathContextToCustomizeModelSubscriber

public static PathContext getPathContextToCustomizeModelSubscriber(ModelSubscriber theSubscriber,
                                                                   java.lang.Class<? extends PresentationModel> expectedModelType)