org.w3c.rdfpic.ui
Interface CboxMaker

All Known Implementing Classes:
DCSubjectCboxMaker

public interface CboxMaker

A CboxMaker provides support for builtin functionality, e.g. the DC:Subject field. Register a CboxMaker in a SchemaTabbedPane with SchemaTabbedPane.addBuiltin(String predName,CboxMaker cboxMaker). When a SchemaTabbedPane encounters a predicate starting with "_" in a schema with the builtin bit on, it strips the underscore and passes on the remainder of the predicate name to the CboxMaker registered with that predicate. The JComboBox returned by newCbox must support the following:


Method Summary
 javax.swing.JComboBox newCbox(java.lang.String predName)
          Called by a SchemaTabbedPane upon encountering a field starting with an underscore in a schema with the builtin bit enabled.
 void newFileLoaded()
          Called by a SchemaTabbedPane whenever a new image file is (successfully) loaded.
 

Method Detail

newCbox

public javax.swing.JComboBox newCbox(java.lang.String predName)
Called by a SchemaTabbedPane upon encountering a field starting with an underscore in a schema with the builtin bit enabled.

newFileLoaded

public void newFileLoaded()
Called by a SchemaTabbedPane whenever a new image file is (successfully) loaded. It is not necessary to reset any JComboBoxes made, as setSelectedItem(null) will be called on them if necessary.