com.webcodepro.applecommander.ui.swt
Class FileViewerWindow

java.lang.Object
  extended by com.webcodepro.applecommander.ui.swt.FileViewerWindow

public class FileViewerWindow
extends java.lang.Object

View a particular files content.

Date created: Dec 7, 2003

Author:
Rob Greene

Constructor Summary
FileViewerWindow(org.eclipse.swt.widgets.Shell parentShell, FileEntry fileEntry, ImageManager imageManager)
          Construct the file viewer window.
FileViewerWindow(org.eclipse.swt.widgets.Shell parentShell, FileEntry fileEntry, ImageManager imageManager, FileFilter nativeFilter)
          Construct the file viewer window.
 
Method Summary
protected  org.eclipse.swt.widgets.ToolItem createCopyToolItem()
          Create the copy tool item (button).
protected  void createFilterAdapterMap()
          Setup all possible specialized FilterAdapters.
protected  org.eclipse.swt.widgets.ToolItem createHexDumpToolItem()
          Create the hex dump tool item (button).
protected  org.eclipse.swt.widgets.ToolItem createPrintToolItem()
          Create the print tool item (button).
protected  org.eclipse.swt.widgets.ToolItem createRawDumpToolItem()
          Create the raw dump tool item (button).
 org.eclipse.swt.widgets.Listener createToolbarCommandHandler()
          The toolbar command handler contains the global toolbar actions.
protected  void dispose(org.eclipse.swt.events.DisposeEvent event)
          Dispose of all shared resources.
 org.eclipse.swt.graphics.Color getBlackColor()
           
 org.eclipse.swt.graphics.Color getBlueColor()
           
 org.eclipse.swt.custom.ScrolledComposite getComposite()
           
protected  ContentTypeAdapter getContentTypeAdapter()
           
 org.eclipse.swt.widgets.ToolItem getCopyToolItem()
           
 org.eclipse.swt.graphics.Font getCourierFont()
           
 FileEntry getFileEntry()
           
 FileFilter getFileFilter()
           
 org.eclipse.swt.graphics.Color getGreenColor()
           
protected  FilterAdapter getHexFilterAdapter()
           
protected  FilterAdapter getNativeFilterAdapter()
           
protected  FilterAdapter getRawDumpFilterAdapter()
           
 void open()
          Setup the File Viewer window and display (open) it.
 void setContentTypeAdapter(ContentTypeAdapter adapter)
           
 void setFilterToolItemSelection(boolean nativeSelected, boolean hexSelected, boolean dumpSelected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileViewerWindow

public FileViewerWindow(org.eclipse.swt.widgets.Shell parentShell,
                        FileEntry fileEntry,
                        ImageManager imageManager)
Construct the file viewer window.


FileViewerWindow

public FileViewerWindow(org.eclipse.swt.widgets.Shell parentShell,
                        FileEntry fileEntry,
                        ImageManager imageManager,
                        FileFilter nativeFilter)
Construct the file viewer window.

Method Detail

open

public void open()
Setup the File Viewer window and display (open) it.


createFilterAdapterMap

protected void createFilterAdapterMap()
Setup all possible specialized FilterAdapters.


dispose

protected void dispose(org.eclipse.swt.events.DisposeEvent event)
Dispose of all shared resources.


createHexDumpToolItem

protected org.eclipse.swt.widgets.ToolItem createHexDumpToolItem()
Create the hex dump tool item (button).


createRawDumpToolItem

protected org.eclipse.swt.widgets.ToolItem createRawDumpToolItem()
Create the raw dump tool item (button).


createCopyToolItem

protected org.eclipse.swt.widgets.ToolItem createCopyToolItem()
Create the copy tool item (button).


createPrintToolItem

protected org.eclipse.swt.widgets.ToolItem createPrintToolItem()
Create the print tool item (button).


createToolbarCommandHandler

public org.eclipse.swt.widgets.Listener createToolbarCommandHandler()
The toolbar command handler contains the global toolbar actions. The intent is that the listener is then added to multiple visual components.


getFileFilter

public FileFilter getFileFilter()

getFileEntry

public FileEntry getFileEntry()

getCopyToolItem

public org.eclipse.swt.widgets.ToolItem getCopyToolItem()

getComposite

public org.eclipse.swt.custom.ScrolledComposite getComposite()

setContentTypeAdapter

public void setContentTypeAdapter(ContentTypeAdapter adapter)

getCourierFont

public org.eclipse.swt.graphics.Font getCourierFont()

getBlackColor

public org.eclipse.swt.graphics.Color getBlackColor()

getGreenColor

public org.eclipse.swt.graphics.Color getGreenColor()

getBlueColor

public org.eclipse.swt.graphics.Color getBlueColor()

setFilterToolItemSelection

public void setFilterToolItemSelection(boolean nativeSelected,
                                       boolean hexSelected,
                                       boolean dumpSelected)

getContentTypeAdapter

protected ContentTypeAdapter getContentTypeAdapter()

getHexFilterAdapter

protected FilterAdapter getHexFilterAdapter()

getNativeFilterAdapter

protected FilterAdapter getNativeFilterAdapter()

getRawDumpFilterAdapter

protected FilterAdapter getRawDumpFilterAdapter()