|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox
public class VuzeMessageBox
Constructor Summary | |
---|---|
VuzeMessageBox(java.lang.String title,
java.lang.String text,
java.lang.String[] buttons,
int defaultOption)
|
Method Summary | |
---|---|
protected void |
_open(UserPrompterResultListener l)
|
void |
addListener(UserPrompterResultListener l)
|
void |
addResourceBundle(java.lang.Class<?> cla,
java.lang.String path,
java.lang.String name)
|
void |
close(int buttonNo)
Deprecated. Since buttons can swap around, you should use closeWithButtonVal(int) |
void |
closeWithButtonVal(int buttonVal)
|
int |
getAutoCloseInMS()
Returns the number milliseconds the prompt will wait around until it auto closes. |
org.eclipse.swt.widgets.Button[] |
getButtons()
|
java.lang.String |
getHtml()
Returns the HTML that will be displayed along with the prompt |
java.lang.String |
getRememberID()
Retrieves the Remember ID associated with this prompt |
java.lang.String |
getRememberText()
Retrieves the text to be displayed by the "Remember this Action" checkbox |
boolean |
isAutoClosed()
Determines if the prompt was auto closed after #open() was
called, or if the user chose an option. |
void |
open(UserPrompterResultListener l)
Opens the prompt. |
void |
setAutoCloseInMS(int autoCloseInMS)
Sets the # of milliseconds before auto closing. |
void |
setButtonEnabled(int buttonVal,
boolean enable)
|
void |
setButtonVals(java.lang.Integer[] buttonVals)
|
void |
setDefaultButtonByPos(int pos)
|
void |
setHtml(java.lang.String html)
|
void |
setIconResource(java.lang.String resource)
|
void |
setListener(VuzeMessageBoxListener l)
|
void |
setOneInstanceOf(java.lang.String instanceID)
Prevent more than one dialog of instanceID from showing up at once |
void |
setRelatedObject(java.lang.Object relatedObject)
|
void |
setRelatedObjects(java.lang.Object[] relatedObjects)
|
void |
setRemember(java.lang.String rememberID,
boolean rememberByDefault,
java.lang.String rememberText)
|
void |
setRememberOnlyIfButton(int button)
|
void |
setRememberText(java.lang.String rememberText)
|
void |
setSkinnedDialagTemplate(java.lang.String dialogTempate)
|
void |
setSubTitle(java.lang.String s)
|
void |
setTextIconResource(java.lang.String resource)
|
void |
setUrl(java.lang.String url)
|
void |
skinDialogClosed(SkinnedDialog dialog)
|
int |
waitUntilClosed()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VuzeMessageBox(java.lang.String title, java.lang.String text, java.lang.String[] buttons, int defaultOption)
Method Detail |
---|
public void setButtonEnabled(int buttonVal, boolean enable)
public void setButtonVals(java.lang.Integer[] buttonVals)
public void setSubTitle(java.lang.String s)
public int getAutoCloseInMS()
UIFunctionsUserPrompter
#open()
is
called), and typically does not decrease while the user is viewing the
prompt (certain implementations may operate differently)
getAutoCloseInMS
in interface UIFunctionsUserPrompter
public java.lang.String getHtml()
UIFunctionsUserPrompter
TODO: Create a boolean canHandleHTML()
getHtml
in interface UIFunctionsUserPrompter
public java.lang.String getRememberID()
UIFunctionsUserPrompter
getRememberID
in interface UIFunctionsUserPrompter
public java.lang.String getRememberText()
UIFunctionsUserPrompter
getRememberText
in interface UIFunctionsUserPrompter
public boolean isAutoClosed()
UIFunctionsUserPrompter
#open()
was
called, or if the user chose an option.
isAutoClosed
in interface UIFunctionsUserPrompter
public void open(UserPrompterResultListener l)
UIFunctionsUserPrompter
open
in interface UIFunctionsUserPrompter
public void setSkinnedDialagTemplate(java.lang.String dialogTempate)
protected void _open(UserPrompterResultListener l)
public org.eclipse.swt.widgets.Button[] getButtons()
public void setAutoCloseInMS(int autoCloseInMS)
UIFunctionsUserPrompter
#open()
is
called), and typically does not decrease while the user is viewing the
prompt (certain implementations may operate differently)
setAutoCloseInMS
in interface UIFunctionsUserPrompter
public void setHtml(java.lang.String html)
setHtml
in interface UIFunctionsUserPrompter
public void setIconResource(java.lang.String resource)
setIconResource
in interface UIFunctionsUserPrompter
resource
- image repository resource name (e.g. "error", "warning", "info")public void setRelatedObject(java.lang.Object relatedObject)
setRelatedObject
in interface UIFunctionsUserPrompter
public void setRelatedObjects(java.lang.Object[] relatedObjects)
setRelatedObjects
in interface UIFunctionsUserPrompter
public void setRemember(java.lang.String rememberID, boolean rememberByDefault, java.lang.String rememberText)
setRemember
in interface UIFunctionsUserPrompter
public void setRememberText(java.lang.String rememberText)
setRememberText
in interface UIFunctionsUserPrompter
public void setRememberOnlyIfButton(int button)
setRememberOnlyIfButton
in interface UIFunctionsUserPrompter
public void setUrl(java.lang.String url)
setUrl
in interface UIFunctionsUserPrompter
public int waitUntilClosed()
waitUntilClosed
in interface UIFunctionsUserPrompter
public void skinDialogClosed(SkinnedDialog dialog)
skinDialogClosed
in interface SkinnedDialog.SkinnedDialogClosedListener
public void setListener(VuzeMessageBoxListener l)
public void close(int buttonNo)
closeWithButtonVal(int)
public void closeWithButtonVal(int buttonVal)
public void addResourceBundle(java.lang.Class<?> cla, java.lang.String path, java.lang.String name)
public void setTextIconResource(java.lang.String resource)
public void addListener(UserPrompterResultListener l)
public void setDefaultButtonByPos(int pos)
public void setOneInstanceOf(java.lang.String instanceID)
UIFunctionsUserPrompter
setOneInstanceOf
in interface UIFunctionsUserPrompter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |