com.jaxfront.swing.ui.tools
Class FocusHelper

java.lang.Object
  extended by com.jaxfront.swing.ui.tools.FocusHelper

public class FocusHelper
extends java.lang.Object

This class helps to set the Focus to the Error Type

Version:
1.60

Constructor Summary
FocusHelper()
           
 
Method Summary
static AbstractView evaluateErrorView(Type source, Type context)
           
static Visualizer evaluteBestMatchingVisualizer(Type parentType, Type aType)
           
static void expandBorderPanel(AbstractView view, boolean expanded)
           
static void focus(Type source)
          Sets the focus to the current error type.
static void focus(Type source, Type context)
           
static void focus(Type source, Type context, boolean openDialog)
           
static void focusNew(Type source, Type context, boolean openDialog)
           
static void focusSync(Type source, Type context, boolean openDialog)
           
static Visualizer getErrorVisualizer(java.util.List path)
           
static Type getLastVisibleTreeNode(java.util.List path, AbstractEditorPanel editor)
           
static void scrollTo(AbstractView errorView, TypeWorkspace workspace)
           
static void selectViewPathTypes(java.util.List path, AbstractEditorPanel editor, AbstractView errorView, boolean openDialog)
           
static void setBorderPanelStates(AbstractView errorView, boolean expanded)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusHelper

public FocusHelper()
Method Detail

focus

public static void focus(Type source)
Sets the focus to the current error type.

Parameters:
error - a validation error

focus

public static void focus(Type source,
                         Type context)

getErrorVisualizer

public static Visualizer getErrorVisualizer(java.util.List path)

evaluteBestMatchingVisualizer

public static Visualizer evaluteBestMatchingVisualizer(Type parentType,
                                                       Type aType)

getLastVisibleTreeNode

public static Type getLastVisibleTreeNode(java.util.List path,
                                          AbstractEditorPanel editor)

selectViewPathTypes

public static void selectViewPathTypes(java.util.List path,
                                       AbstractEditorPanel editor,
                                       AbstractView errorView,
                                       boolean openDialog)

scrollTo

public static void scrollTo(AbstractView errorView,
                            TypeWorkspace workspace)

expandBorderPanel

public static void expandBorderPanel(AbstractView view,
                                     boolean expanded)

evaluateErrorView

public static AbstractView evaluateErrorView(Type source,
                                             Type context)

focus

public static void focus(Type source,
                         Type context,
                         boolean openDialog)

focusSync

public static void focusSync(Type source,
                             Type context,
                             boolean openDialog)

focusNew

public static void focusNew(Type source,
                            Type context,
                            boolean openDialog)

setBorderPanelStates

public static void setBorderPanelStates(AbstractView errorView,
                                        boolean expanded)