com.buglabs.bug.base
Class AboutMenuAdapter
java.lang.Object
com.buglabs.menu.AbstractMenuNode
com.buglabs.bug.base.AboutMenuAdapter
- All Implemented Interfaces:
- IMenuNode, java.lang.Comparable
public class AboutMenuAdapter
- extends AbstractMenuNode
|
Method Summary |
java.util.List |
getChildren()
|
static java.util.List |
getFileAsList(java.lang.String filename,
java.lang.String title)
Utility method to return file as list of strings |
static java.lang.String |
getFileAsString(java.lang.String filename)
Utility method to return file as list of strings |
static java.lang.String |
getFirstLine(java.lang.String filename)
Utility method to return first line of a file. |
boolean |
hasChildren()
|
| Methods inherited from class com.buglabs.menu.AbstractMenuNode |
compareTo, equals, execute, getBusyName, getComparator, getErrorName, getFirstParentOfType, getName, getNextSibling, getParent, getPath, getPreviousSibling, isBusy, isError, setName, setParent, sortChildren, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AboutMenuAdapter
public AboutMenuAdapter(LogService log)
getFileAsList
public static java.util.List getFileAsList(java.lang.String filename,
java.lang.String title)
throws java.io.IOException
- Utility method to return file as list of strings
- Parameters:
filename - title -
- Returns:
-
- Throws:
java.io.IOException
getFileAsString
public static java.lang.String getFileAsString(java.lang.String filename)
throws java.io.IOException
- Utility method to return file as list of strings
- Parameters:
filename - title -
- Returns:
-
- Throws:
java.io.IOException
getFirstLine
public static java.lang.String getFirstLine(java.lang.String filename)
throws java.io.IOException
- Utility method to return first line of a file.
- Parameters:
filename -
- Returns:
-
- Throws:
java.io.IOException
getChildren
public java.util.List getChildren()
- Specified by:
getChildren in interface IMenuNode- Overrides:
getChildren in class AbstractMenuNode
- Returns:
- All children for this node.
hasChildren
public boolean hasChildren()
- Specified by:
hasChildren in interface IMenuNode- Overrides:
hasChildren in class AbstractMenuNode
- Returns:
true if number of children greater than 0.