|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.core.Props org.pentaho.di.ui.core.PropsUI
public class PropsUI
We use Props to store all kinds of user interactive information such as the selected colors, fonts, positions of windows, etc.
Field Summary |
---|
Method Summary | |
---|---|
void |
addLastFile(String fileType,
String filename,
String directory,
boolean sourceRepository,
String repositoryName)
Add a last opened file to the top of the recently used list. |
void |
addOpenTabFile(String fileType,
String filename,
String directory,
boolean sourceRepository,
String repositoryName,
int openTypes)
Add a last opened file to the top of the recently used list. |
static Point |
calculateGridPosition(Point p)
|
boolean |
getAutoCollapseCoreObjectsTree()
|
boolean |
getAutoSave()
|
boolean |
getAutoSplit()
|
RGB |
getBackgroundRGB()
|
RGB |
getBackupgroundRGB()
Deprecated. |
int |
getCanvasGridSize()
|
FontData |
getDefaultFont()
|
FontData |
getDefaultFontData()
|
int |
getDefaultPreviewSize()
|
int |
getDialogStyle(String styleProperty)
|
static Display |
getDisplay()
|
String |
getFilename()
|
FontData |
getFixedFont()
|
RGB |
getGraphColorRGB()
|
FontData |
getGraphFont()
|
FontData |
getGridFont()
|
int |
getIconSize()
|
static PropsUI |
getInstance()
|
int |
getJobsDialogStyle()
|
String[] |
getLastDirs()
|
String[] |
getLastFiles()
|
String[] |
getLastFileTypes()
|
String[] |
getLastPreview()
|
int[] |
getLastPreviewSize()
|
String[] |
getLastRepositories()
|
String |
getLastTrans()
|
boolean[] |
getLastTypes()
|
List<LastUsedFile> |
getLastUsedFiles()
|
int |
getLineWidth()
|
int |
getMaxUndo()
|
int |
getMiddlePct()
|
FontData |
getNoteFont()
|
List<LastUsedFile> |
getOpenTabFiles()
|
List<GUIOption<Object>> |
getRegisteredEditableComponents()
|
int[] |
getSashWeights()
|
boolean |
getSaveConfirmation()
|
WindowProperty |
getScreen(String windowname)
|
int |
getShadowSize()
|
RGB |
getTabColorRGB()
|
int |
getTipNr()
|
static void |
init(Display d,
int t)
Initialize the properties: load from disk. |
static void |
init(Display d,
String filename)
Initialize the properties: load from disk. |
boolean |
isAntiAliasingEnabled()
|
boolean |
isBrandingActive()
|
boolean |
isIndicateSlowTransStepsEnabled()
|
static boolean |
isInitialized()
Check to see whether the Kettle properties where loaded. |
boolean |
isOnlyActiveFileShownInTree()
|
boolean |
isOSLookShown()
|
boolean |
isShowingHelpToolTips()
|
void |
loadLastUsedFiles()
|
void |
loadOpenTabFiles()
|
void |
loadScreens()
|
boolean |
openLastFile()
|
void |
saveProps()
|
void |
setAntiAliasingEnabled(boolean anti)
|
void |
setAutoCollapseCoreObjectsTree(boolean autoCollapse)
|
void |
setAutoSave(boolean autosave)
|
void |
setAutoSplit(boolean autosplit)
|
void |
setBackgroundRGB(RGB c)
|
void |
setBrandingActive(boolean active)
|
void |
setCanvasGridSize(int gridSize)
|
void |
setDefault()
|
void |
setDefaultFont(FontData fd)
|
void |
setDefaultPreviewSize(int size)
|
void |
setDialogSize(Shell shell,
String styleProperty)
|
static void |
setDisplay(Display d)
|
void |
setExitWarningShown(boolean show)
|
void |
setFixedFont(FontData fd)
|
static void |
setGCFont(GC gc,
Device device,
FontData fontData)
|
void |
setGraphColorRGB(RGB c)
|
void |
setGraphFont(FontData fd)
|
void |
setGridFont(FontData fd)
|
void |
setIconSize(int size)
|
void |
setIndicateSlowTransStepsEnabled(boolean indicate)
|
void |
setLastFiles()
|
void |
setLastPreview(String[] lastpreview,
int[] stepsize)
|
void |
setLastTrans(String trans)
|
void |
setLastUsedFiles(List<LastUsedFile> lastUsedFiles)
|
void |
setLineWidth(int width)
|
static void |
setLocation(GUIPositionInterface guiElement,
int x,
int y)
|
void |
setLook(Control widget)
|
void |
setLook(Control control,
int style)
|
void |
setMaxUndo(int max)
|
void |
setMiddlePct(int pct)
|
void |
setNoteFont(FontData fd)
|
void |
setOnlyActiveFileShownInTree(boolean show)
|
void |
setOpenLastFile(boolean open)
|
void |
setOpenTabFiles()
|
void |
setOpenTabFiles(List<LastUsedFile> openTabFiles)
|
void |
setOSLookShown(boolean show)
|
void |
setRepositoriesDialogAtStartupShown(boolean show)
|
void |
setSashWeights(int[] w)
|
void |
setSaveConfirmation(boolean saveconf)
|
void |
setScreen(WindowProperty winprop)
|
void |
setShadowSize(int size)
|
void |
setShowCopyOrDistributeWarning(boolean show)
|
void |
setShowingHelpToolTips(boolean show)
|
void |
setShowTips(boolean show)
|
void |
setShowToolTips(boolean show)
|
void |
setShowWelcomePageOnStartup(boolean show)
|
void |
setTabColorRGB(RGB c)
|
static void |
setTableItemLook(TableItem item,
Display disp)
|
void |
setTipNr(int nr)
|
boolean |
showCopyOrDistributeWarning()
|
boolean |
showExitWarning()
|
boolean |
showRepositoriesDialogAtStartup()
|
boolean |
showTips()
|
boolean |
showToolTips()
|
boolean |
showWelcomePageOnStartup()
|
void |
storeScreens()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static final void init(Display d, int t)
display
- The Displayt
- The type of properties file.public static final void init(Display d, String filename)
display
- The Displayfilename
- the filename to usepublic static final boolean isInitialized()
public static final PropsUI getInstance()
public void setDefault()
public void storeScreens()
public void loadScreens()
public void saveProps()
saveProps
in class Props
public void setLastFiles()
public void setOpenTabFiles()
public void addLastFile(String fileType, String filename, String directory, boolean sourceRepository, String repositoryName)
fileType
- the type of file to use @see LastUsedFilefilename
- The name of the file or transformationdirectory
- The repository directory path, null in case lf is an XML filesourceRepository
- True if the file was loaded from repository, false if ld is an XML file.repositoryName
- The name of the repository the file was loaded from or save to.public void addOpenTabFile(String fileType, String filename, String directory, boolean sourceRepository, String repositoryName, int openTypes)
fileType
- the type of file to use @see LastUsedFilefilename
- The name of the file or transformationdirectory
- The repository directory path, null in case lf is an XML filesourceRepository
- True if the file was loaded from repository, false if ld is an XML file.repositoryName
- The name of the repository the file was loaded from or save to.public void loadLastUsedFiles()
public void loadOpenTabFiles()
public List<LastUsedFile> getLastUsedFiles()
public void setLastUsedFiles(List<LastUsedFile> lastUsedFiles)
public String[] getLastFileTypes()
public String[] getLastFiles()
public String getFilename()
getFilename
in class Props
public String[] getLastDirs()
public boolean[] getLastTypes()
public String[] getLastRepositories()
public void setFixedFont(FontData fd)
public FontData getFixedFont()
public void setDefaultFont(FontData fd)
public FontData getDefaultFont()
public void setGraphFont(FontData fd)
public FontData getGraphFont()
public void setGridFont(FontData fd)
public FontData getGridFont()
public void setNoteFont(FontData fd)
public FontData getNoteFont()
public void setBackgroundRGB(RGB c)
public RGB getBackgroundRGB()
public RGB getBackupgroundRGB()
public void setGraphColorRGB(RGB c)
public RGB getGraphColorRGB()
public void setTabColorRGB(RGB c)
public RGB getTabColorRGB()
public void setIconSize(int size)
public int getIconSize()
public void setLineWidth(int width)
public int getLineWidth()
public void setShadowSize(int size)
public int getShadowSize()
public void setLastTrans(String trans)
public String getLastTrans()
public void setLastPreview(String[] lastpreview, int[] stepsize)
public String[] getLastPreview()
public int[] getLastPreviewSize()
public FontData getDefaultFontData()
public void setMaxUndo(int max)
public int getMaxUndo()
public void setMiddlePct(int pct)
public int getMiddlePct()
public void setScreen(WindowProperty winprop)
public WindowProperty getScreen(String windowname)
public void setSashWeights(int[] w)
public int[] getSashWeights()
public void setTipNr(int nr)
public int getTipNr()
public void setShowTips(boolean show)
public boolean showTips()
public void setOpenLastFile(boolean open)
public boolean openLastFile()
public void setAutoSave(boolean autosave)
public boolean getAutoSave()
public void setSaveConfirmation(boolean saveconf)
public boolean getSaveConfirmation()
public void setAutoSplit(boolean autosplit)
public boolean getAutoSplit()
public void setAutoCollapseCoreObjectsTree(boolean autoCollapse)
public boolean getAutoCollapseCoreObjectsTree()
public boolean showRepositoriesDialogAtStartup()
public void setExitWarningShown(boolean show)
public boolean isAntiAliasingEnabled()
public void setAntiAliasingEnabled(boolean anti)
public boolean showExitWarning()
public void setRepositoriesDialogAtStartupShown(boolean show)
public boolean isOSLookShown()
public void setOSLookShown(boolean show)
public static final void setGCFont(GC gc, Device device, FontData fontData)
public void setLook(Control widget)
public void setLook(Control control, int style)
public static void setTableItemLook(TableItem item, Display disp)
public static Display getDisplay()
public static void setDisplay(Display d)
display
- The display to set.public void setDefaultPreviewSize(int size)
public int getDefaultPreviewSize()
public boolean showCopyOrDistributeWarning()
public void setShowCopyOrDistributeWarning(boolean show)
public boolean showWelcomePageOnStartup()
public void setShowWelcomePageOnStartup(boolean show)
public int getJobsDialogStyle()
public int getDialogStyle(String styleProperty)
public void setDialogSize(Shell shell, String styleProperty)
public boolean isBrandingActive()
public void setBrandingActive(boolean active)
public boolean isOnlyActiveFileShownInTree()
public void setOnlyActiveFileShownInTree(boolean show)
public boolean showToolTips()
public void setShowToolTips(boolean show)
public List<GUIOption<Object>> getRegisteredEditableComponents()
public boolean isShowingHelpToolTips()
public void setShowingHelpToolTips(boolean show)
public List<LastUsedFile> getOpenTabFiles()
public void setOpenTabFiles(List<LastUsedFile> openTabFiles)
openTabFiles
- the openTabFiles to setpublic int getCanvasGridSize()
public void setCanvasGridSize(int gridSize)
public static final void setLocation(GUIPositionInterface guiElement, int x, int y)
public static final Point calculateGridPosition(Point p)
public boolean isIndicateSlowTransStepsEnabled()
public void setIndicateSlowTransStepsEnabled(boolean indicate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |