com.buglabs.bug.base
Class AboutMenuAdapter

java.lang.Object
  extended by com.buglabs.menu.AbstractMenuNode
      extended by com.buglabs.bug.base.AboutMenuAdapter
All Implemented Interfaces:
com.buglabs.menu.IMenuNode, java.lang.Comparable

public class AboutMenuAdapter
extends com.buglabs.menu.AbstractMenuNode


Constructor Summary
AboutMenuAdapter(org.osgi.service.log.LogService log)
           
 
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
 

Constructor Detail

AboutMenuAdapter

public AboutMenuAdapter(org.osgi.service.log.LogService log)
Method Detail

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 com.buglabs.menu.IMenuNode
Overrides:
getChildren in class com.buglabs.menu.AbstractMenuNode
Returns:
All children for this node.

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface com.buglabs.menu.IMenuNode
Overrides:
hasChildren in class com.buglabs.menu.AbstractMenuNode
Returns:
true if number of children greater than 0.