Package org.omegat.gui.segmentation
Class SegmentationCustomizerController
- java.lang.Object
 - 
- org.omegat.gui.preferences.BasePreferencesController
 - 
- org.omegat.gui.segmentation.SegmentationCustomizerController
 
 
 
- 
- All Implemented Interfaces:
 IPreferencesController
public class SegmentationCustomizerController extends BasePreferencesController
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.omegat.gui.preferences.IPreferencesController
IPreferencesController.FurtherActionListener 
 - 
 
- 
Constructor Summary
Constructors Constructor Description SegmentationCustomizerController()SegmentationCustomizerController(boolean projectSpecific, SRX defaultSRX, SRX userSRX, SRX projectSRX) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponentgetGui()Get the GUI (the "view") controlled by this controller.SRXgetResult()Returns the SRX that was edited, so it can be used.voidpersist()Commit changes.voidrestoreDefaults()Restore preferences controlled by this view to their default state.java.lang.StringtoString()Implementors should override this to return the name of the view as shown in the view tree.- 
Methods inherited from class org.omegat.gui.preferences.BasePreferencesController
addFurtherActionListener, isReloadRequired, isRestartRequired, removeFurtherActionListener, setReloadRequired, setRestartRequired, undoChanges 
- 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.omegat.gui.preferences.IPreferencesController
getParentViewClass, validate 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getGui
public javax.swing.JComponent getGui()
Description copied from interface:IPreferencesControllerGet the GUI (the "view") controlled by this controller. This should not be a window (e.g. JDialog, JFrame) but rather a component embeddable in a window (e.g. JPanel). 
- 
toString
public java.lang.String toString()
Description copied from interface:IPreferencesControllerImplementors should override this to return the name of the view as shown in the view tree.- Specified by:
 toStringin interfaceIPreferencesController- Specified by:
 toStringin classBasePreferencesController
 
- 
restoreDefaults
public void restoreDefaults()
Description copied from interface:IPreferencesControllerRestore preferences controlled by this view to their default state. 
- 
persist
public void persist()
Description copied from interface:IPreferencesControllerCommit changes. 
- 
getResult
public SRX getResult()
Returns the SRX that was edited, so it can be used. If project-specific segmentation rules are requested, and user has not checked 'enable project specific segmentation', then null is returned. 
 - 
 
 -