org.qriterium.dogma.gui
Class DogmaMain
java.lang.Object
org.qriterium.dogma.gui.DogmaCore
org.qriterium.dogma.gui.DogmaMain
public class DogmaMain
- extends DogmaCore
DogmaMain is the main class for opening the program and creating the components for it.
It is made of 5 components;
DogmaMenuComponent, the menubar for the gui and its functions
DogmaSearchComponent, the search-area of the gui and its functions
DogmaResourceTableComponent, the are where we show the resources
DogmaURIComponent, the area for URIs
and, DogmaDBCommComponent, which keeps track of the shown resources and the modifications to them
DogmaMain offers two types of constructors.
new DogmaMain() creates a gui that loads the last viewed resources to the resourcetable
new DogmaMain(Vector vdr) creates a gui that shows the resources in the
vector in the resourcetable.
The searches made in DogmaSearchComponent are made to the Database, which is hidden behind
DogmaDBCommComponent
DogmaMain also controls some of the traffic between the components, so that they don't have to
be aware of each others. Functions for the traffic control are;
setResourceTableContent(Vector v), sets the content of the resource table
to be the resources in the given vector.
setUriComponentContent(DogmaResource r), sets the content of the uri table to match the
uris of the given resource.
Constructor Summary |
DogmaMain()
Opens the resourcebrowser and loads the resources that were open on last query to the
window. |
DogmaMain(java.util.Vector<DogmaResource> resources)
Opens new resourcebrowser with given resources as table content. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DogmaMain
public DogmaMain(java.util.Vector<DogmaResource> resources)
- Opens new resourcebrowser with given resources as table content.
- Parameters:
resources
- Vector of DogmaResources
DogmaMain
public DogmaMain()
- Opens the resourcebrowser and loads the resources that were open on last query to the
window.
newInstance
public void newInstance()
- Creates a new instance of the resourcebrowser.
main
public static void main(java.lang.String[] args)
getResourceBase
public ResourceBase getResourceBase()
- Returns the resourcebase currently in use. If no resourcebase in use,
null is returned.
- Returns:
setResourceBase
public void setResourceBase(ResourceBase base)
- Sets the resourcebase to be the given resourcebase.
setUriComponentContent
public void setUriComponentContent(DogmaResource r)
- Sets the uricomponent to contain the URI:s from DogmaResource r.
- Specified by:
setUriComponentContent
in class DogmaCore
setResourceTableContent
public void setResourceTableContent(java.util.Vector<DogmaResource> v)
- Sets the DogmaResourceTableComponent to contain the resources from
DogmaResourceVector v
- Specified by:
setResourceTableContent
in class DogmaCore