org.qriterium.dogma.gui
Class DogmaURIComponent

java.lang.Object
  extended by org.qriterium.dogma.gui.DogmaURIComponent

public class DogmaURIComponent
extends java.lang.Object

DogmaURIComponent is one of the gui-components that the Dogma-program uses. It creates the contents of the uritable and keeps track of the modified or added uris. If some modifications are made, it sends them to the DogmaDBCommComponent, which saves the modifications when needed. Also has the possibility to open the uris in their default program, for which DogmaURIComponent uses DogmaOpen - class.


Constructor Summary
DogmaURIComponent(org.eclipse.swt.widgets.Shell shell, DogmaDBCommComponent rc)
          Creates a new URI - component and the layout for a given shell.
 
Method Summary
 void redraw()
          Updates the scrollbar visibilities and redraws the table.
 void setContent(DogmaResource r)
          Sets the component to show the URI:s corresponding to the given resource.
 void updateUriTableModifications()
          Updates the modifications made to the uritable to the resourcecomponent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DogmaURIComponent

public DogmaURIComponent(org.eclipse.swt.widgets.Shell shell,
                         DogmaDBCommComponent rc)
Creates a new URI - component and the layout for a given shell.

Parameters:
shell -
Method Detail

setContent

public void setContent(DogmaResource r)
Sets the component to show the URI:s corresponding to the given resource. If the current resource has been altered, save the modifications to it.

Parameters:
r - DogmaResource r, of which one wants to show the uris.

updateUriTableModifications

public void updateUriTableModifications()
Updates the modifications made to the uritable to the resourcecomponent


redraw

public void redraw()
Updates the scrollbar visibilities and redraws the table.