public final class ProfileUtil extends Object
ProfileUtil
allows simple customization of profile behaviour.Modifier and Type | Field and Description |
---|---|
static String |
APPLY_SORT_ON_DATABOOK
The constant for showing the table information button.
|
static String |
COMPONENT_PROFILE_ENABLED
The constant for storing component profile enabled state.
|
static String |
DESIGN_TIME
The constant for storing design time information.
|
static String |
IGNORE_COMPONENT_PROFILE
The constant for storing ignore component profile state.
|
static String |
SHOW_TABLE_INFORMATION_BUTTON
The constant for showing the table information button.
|
static String |
TABLE_INFORMATION_DIALOG_CLASS
The constant for storing table information dialog class.
|
Modifier and Type | Method and Description |
---|---|
static void |
addComponentProfile(IApplication pApplication,
IComponentProfile pComponentProfile)
Adds an additional component profile for the given application.
|
static List<IComponentProfile> |
getAllComponentProfiles(IWorkScreen pWorkScreen)
Gets the list of available
IComponentProfile implementations for the given work screen. |
static List<IComponentProfile> |
getComponentProfiles(IApplication pApplication)
Gets the list of custom
IComponentProfile . |
static Class<TableInformationDialog> |
getDefaultTableInformationDialogClass(IApplication pApplication)
Gets the default TableInformationDialog class for the given application.
|
static Class<TableInformationDialog> |
getTableInformationDialogClass(com.sibvisions.apps.components.NavigationTable pNavigationTable)
Gets the TableInformationDialog class for the given NavigationTable.
|
static boolean |
isApplySortOnDataBook(UITable pTable)
Gets if sort should be applied on data books.
|
static boolean |
isDefaultApplySortOnDataBook(IApplication pApplication)
Gets if sort should be applied on data books by default.
|
static boolean |
isDefaultShowTableInformationButton(IApplication pApplication)
Gets if default TableInformation button should be shown.
|
static boolean |
isDesignTime(IComponent pComponent)
Gets design time information on component.
|
static boolean |
isIgnoreProfile(IComponent pComponent)
Gets, if the profile for the component and all its children should be ignored.
|
static boolean |
isProfileEnabled(IComponent pComponent)
Gets, if profile for the specific component enabled or disabled.
|
static boolean |
isShowTableInformationButton(com.sibvisions.apps.components.NavigationTable pNavigationTable)
Gets if TableInformation button should be shown.
|
static void |
removeComponentProfile(IApplication pApplication,
IComponentProfile pComponentProfile)
Adds an additional component profile for the given application.
|
static void |
setApplySortOnDataBook(UITable pTable,
boolean pApplySortOnDataBook)
Sets if sort should be applied on data books.
|
static void |
setDefaultApplySortOnDataBook(IApplication pApplication,
boolean pApplySortOnDataBook)
Sets if sort should be applied on data books by default.
|
static void |
setDefaultShowTableInformationButton(IApplication pApplication,
boolean pShowTableInformationButton)
Sets if default TableInformation button should be shown.
|
static void |
setDefaultTableInformationDialogClass(IApplication pApplication,
Class<TableInformationDialog> pTableInformationDialogClass)
Sets the default TableInformationDialog class for the given application.
|
static void |
setDesignTime(IComponent pComponent,
boolean pDesignTime)
Sets design time information on component.
|
static void |
setIgnoreProfile(IComponent pComponent,
boolean pIgnore)
Sets, if the profile for the component and all its children should be ignored.
|
static void |
setProfileEnabled(IComponent pComponent,
boolean pEnabled)
Sets profile for the specific component enabled or disabled.
|
static void |
setShowTableInformationButton(com.sibvisions.apps.components.NavigationTable pNavigationTable,
boolean pShowTableInformationButton)
Sets if TableInformation button should be shown.
|
static void |
setTableInformationDialogClass(com.sibvisions.apps.components.NavigationTable pNavigationTable,
Class<TableInformationDialog> pTableInformationDialogClass)
Sets the TableInformationDialog class for the given NavigationTable.
|
public static final String DESIGN_TIME
public static final String COMPONENT_PROFILE_ENABLED
public static final String IGNORE_COMPONENT_PROFILE
public static final String TABLE_INFORMATION_DIALOG_CLASS
public static final String SHOW_TABLE_INFORMATION_BUTTON
public static final String APPLY_SORT_ON_DATABOOK
public static List<IComponentProfile> getAllComponentProfiles(IWorkScreen pWorkScreen)
IComponentProfile
implementations for the given work screen.pWorkScreen
- the work screenIComponentProfile
implementationspublic static void addComponentProfile(IApplication pApplication, IComponentProfile pComponentProfile)
pApplication
- the applicationpComponentProfile
- the IComponentProfile
public static void removeComponentProfile(IApplication pApplication, IComponentProfile pComponentProfile)
pApplication
- the applicationpComponentProfile
- the IComponentProfile
public static List<IComponentProfile> getComponentProfiles(IApplication pApplication)
IComponentProfile
.pApplication
- the work screenIComponentProfile
.public static void setProfileEnabled(IComponent pComponent, boolean pEnabled)
pComponent
- the component.pEnabled
- true for enabled, false for disabled.public static boolean isProfileEnabled(IComponent pComponent)
pComponent
- the component.public static void setIgnoreProfile(IComponent pComponent, boolean pIgnore)
pComponent
- the component.pIgnore
- true, if profile for the component and all its children should be ignored.public static boolean isIgnoreProfile(IComponent pComponent)
pComponent
- the component.public static void setDesignTime(IComponent pComponent, boolean pDesignTime)
pComponent
- the component.pDesignTime
- design time information on component.public static boolean isDesignTime(IComponent pComponent)
pComponent
- the component.public static Class<TableInformationDialog> getTableInformationDialogClass(com.sibvisions.apps.components.NavigationTable pNavigationTable)
pNavigationTable
- the NavigationTablepublic static void setTableInformationDialogClass(com.sibvisions.apps.components.NavigationTable pNavigationTable, Class<TableInformationDialog> pTableInformationDialogClass)
pNavigationTable
- the NavigationTablepTableInformationDialogClass
- the TableInformationDialog classpublic static Class<TableInformationDialog> getDefaultTableInformationDialogClass(IApplication pApplication)
pApplication
- the applicationpublic static void setDefaultTableInformationDialogClass(IApplication pApplication, Class<TableInformationDialog> pTableInformationDialogClass)
pApplication
- the applicationpTableInformationDialogClass
- the TableInformationDialog classpublic static boolean isShowTableInformationButton(com.sibvisions.apps.components.NavigationTable pNavigationTable)
pNavigationTable
- the NavigationTablepublic static void setShowTableInformationButton(com.sibvisions.apps.components.NavigationTable pNavigationTable, boolean pShowTableInformationButton)
pNavigationTable
- the NavigationTablepShowTableInformationButton
- if TableInformation button should be shown.public static boolean isDefaultShowTableInformationButton(IApplication pApplication)
pApplication
- the applicationpublic static void setDefaultShowTableInformationButton(IApplication pApplication, boolean pShowTableInformationButton)
pApplication
- the applicationpShowTableInformationButton
- if default TableInformation button should be shown.public static boolean isApplySortOnDataBook(UITable pTable)
pTable
- the NavigationTablepublic static void setApplySortOnDataBook(UITable pTable, boolean pApplySortOnDataBook)
pTable
- the NavigationTablepApplySortOnDataBook
- if sort should be applied on data books.public static boolean isDefaultApplySortOnDataBook(IApplication pApplication)
pApplication
- the applicationpublic static void setDefaultApplySortOnDataBook(IApplication pApplication, boolean pApplySortOnDataBook)
pApplication
- the applicationpApplySortOnDataBook
- if sort should be applied on data books by default.Copyright © 2020 SIB Visions GmbH. All Rights Reserved.