Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Mobile Tools for Java
Release 1.0

org.eclipse.mtj.ui.editors.device
Class AbstractDeviceEditorPage


java.lang.Object
  extended by Composite
      extended by 
org.eclipse.mtj.ui.editors.device.AbstractDeviceEditorPage

public abstract class AbstractDeviceEditorPage
extends Composite

Abstract superclass for all of the device editor pages.

Since:
1.0

Field Summary
protected   DeviceEditorDialog dialog
           
protected  org.eclipse.mtj.internal.core.sdk.device.AbstractMIDPDevice editDevice
           
protected   String errorMessage
           
protected  boolean valid
           
 
Constructor Summary
AbstractDeviceEditorPage (Composite parent, int style)
          Construct a new editor page.
 
Method Summary
protected abstract  void addPageControls (Composite parent)
          Create the controls specific to this page.
abstract  void commitDeviceChanges ()
          Commit all of the changes on this page to the device.
abstract   String getDescription ()
          Return a description of what is being specified on this page.
abstract   String getTitle ()
          Return the title for this page.
 boolean isValid ()
          Return a boolean indicating whether the values on the page are valid.
 void setDevice ( IMIDPDevice device)
          Set the device to be edited.
 void setDialog ( DeviceEditorDialog dialog)
          Set the dialog in which this page resides.
protected  void setErrorMessage ( String message)
          Set the error message to be displayed to the user.
protected  void setValid (boolean isValid)
          Update the validity status of this page.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dialog

protected 
DeviceEditorDialog dialog

editDevice

protected org.eclipse.mtj.internal.core.sdk.device.AbstractMIDPDevice editDevice

errorMessage

protected 
String errorMessage

valid

protected boolean valid
Constructor Detail

AbstractDeviceEditorPage

public AbstractDeviceEditorPage(Composite parent,
                                int style)
Construct a new editor page.

Parameters:
parent -
style -
Method Detail

commitDeviceChanges

public abstract void commitDeviceChanges()
                                  throws CoreException
Commit all of the changes on this page to the device.

Throws:
CoreException

getDescription

public abstract 
String getDescription()
Return a description of what is being specified on this page.

Returns:

getTitle

public abstract 
String getTitle()
Return the title for this page.

Returns:

isValid

public boolean isValid()
Return a boolean indicating whether the values on the page are valid.

Returns:

setDevice

public void setDevice(
IMIDPDevice device)
Set the device to be edited.

Parameters:
device -

setDialog

public void setDialog(
DeviceEditorDialog dialog)
Set the dialog in which this page resides.

Parameters:
dialog -

addPageControls

protected abstract void addPageControls(Composite parent)
Create the controls specific to this page.

Parameters:
parent -

setErrorMessage

protected void setErrorMessage(
String message)
Set the error message to be displayed to the user.

Parameters:
message -

setValid

protected void setValid(boolean isValid)
Update the validity status of this page.

Parameters:
isValid -

Mobile Tools for Java
Release 1.0


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire