public class DialogUtils extends Object
Constructor and Description |
---|
DialogUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
buildDialogProperties(BBTranslator pTranslator!,
BBjVector pCtrlVect!)
Method buildDialogProperties:
Create property files given a BBTranslator object and a set of controls
|
static BBjNumber |
checkFile(BBjControl pControl!,
BBjString pFilePath$,
BBjNumber pMustExist,
BBjNumber pFileOnly,
BBjNumber pQuiet)
Method checkFile:
Validity check for a given file path
|
static BBjString |
constructName(HashMap controlMap!)
Method constructName:
Construct a valid control name
|
static BBjVector |
getAllControls(BBjString pResFilePath$)
Method getAllControls:
Get all controls in a resource file
|
static BBjVector |
getAllControls(BBjString pResFilePath$,
BBjNumber pWinId)
Method getAllControls:
Get all controls in a resource file for a particular window id
|
static BBjVector |
getAllControls(BBjWindow pWindow!)
Method getAllControls:
Get all controls using a window object
|
static BBjVector |
getAllControlsRecursive(BBjWindow pWindow!,
BBjNumber pInclInstance)
Method getAllControlsRecursive:
Get all controls recursively
|
static BBjNumber |
getTopWindowId(BBjString pResFilePath$)
Method getTopWindowId:
Get the first top level window id in a resource file
|
static BBjVector |
getTopWindowIdList(BBjString pResFilePath$)
Method getTopWindowIdList:
Get a list of all the top level window ids in a resource file
|
public static BBjVector getAllControls(BBjString pResFilePath$)
BBjString
- Resource file pathgetTopWindowIdList(BBjString)
,
getAllControlsRecursive(BBjWindow, BBjNumber)
public static BBjVector getAllControls(BBjString pResFilePath$, BBjNumber pWinId)
BBjString
- Resource file pathBBjNumber
- Window IDgetAllControlsRecursive(BBjWindow, BBjNumber)
public static BBjVector getAllControls(BBjWindow pWindow!)
BBjWindow
- Window objectgetAllControlsRecursive(BBjWindow, BBjNumber)
public static BBjVector getAllControlsRecursive(BBjWindow pWindow!, BBjNumber pInclInstance)
BBjWindow
- Window objectBBjNumber
- Flag as to whether to include the control instanceconstructName(HashMap)
public static BBjString constructName(HashMap controlMap!)
HashMap
- Control map (built in getAllControlsRecursive())public static BBjVector getTopWindowIdList(BBjString pResFilePath$)
BBjString
- Resource file pathpublic static BBjNumber getTopWindowId(BBjString pResFilePath$)
BBjString
- Resource file pathgetTopWindowIdList(BBjString)
public static BBjNumber checkFile(BBjControl pControl!, BBjString pFilePath$, BBjNumber pMustExist, BBjNumber pFileOnly, BBjNumber pQuiet)
BBjControl
- Optional BBj control object on which to set focus if check failsBBjString
- Path to file to checkBBjNumber
- Must exist flag (0 = must not exist, 1 = must exist)BBjNumber
- File only flag (0 = can be a file or directory, 1 = has to be a file)BBjNumber
- Quiet flag (0 = shows messages, 1 = suppress messages)public static void buildDialogProperties(BBTranslator pTranslator!, BBjVector pCtrlVect!)
BBTranslator
- BBTranslator objectBBjVector
- Vector of controls (built in getAllControlsRecursive())