|
|||||||||
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(String title,
String text,
String[] buttons,
int defaultOption)
|
Method Summary | |
---|---|
protected void |
_open(UserPrompterResultListener l)
|
void |
addListener(UserPrompterResultListener l)
|
void |
addResourceBundle(Class<?> cla,
String path,
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()
|
String |
getHtml()
Returns the HTML that will be displayed along with the prompt |
String |
getRememberID()
Retrieves the Remember ID associated with this prompt |
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(Integer[] buttonVals)
|
void |
setDefaultButtonByPos(int pos)
|
void |
setHtml(String html)
|
void |
setIconResource(String resource)
|
void |
setListener(VuzeMessageBoxListener l)
|
void |
setOneInstanceOf(String instanceID)
Prevent more than one dialog of instanceID from showing up at once |
void |
setRelatedObject(Object relatedObject)
|
void |
setRelatedObjects(Object[] relatedObjects)
|
void |
setRemember(String rememberID,
boolean rememberByDefault,
String rememberText)
|
void |
setRememberOnlyIfButton(int button)
|
void |
setRememberText(String rememberText)
|
void |
setSkinnedDialagTemplate(String dialogTempate)
|
void |
setSubTitle(String s)
|
void |
setTextIconResource(String resource)
|
void |
setUrl(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(String title, String text, String[] buttons, int defaultOption)
Method Detail |
---|
public void setButtonEnabled(int buttonVal, boolean enable)
public void setButtonVals(Integer[] buttonVals)
public void setSubTitle(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 String getHtml()
UIFunctionsUserPrompter
TODO: Create a boolean canHandleHTML()
getHtml
in interface UIFunctionsUserPrompter
public String getRememberID()
UIFunctionsUserPrompter
getRememberID
in interface UIFunctionsUserPrompter
public 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(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(String html)
setHtml
in interface UIFunctionsUserPrompter
public void setIconResource(String resource)
setIconResource
in interface UIFunctionsUserPrompter
resource
- image repository resource name (e.g. "error", "warning", "info")public void setRelatedObject(Object relatedObject)
setRelatedObject
in interface UIFunctionsUserPrompter
public void setRelatedObjects(Object[] relatedObjects)
setRelatedObjects
in interface UIFunctionsUserPrompter
public void setRemember(String rememberID, boolean rememberByDefault, String rememberText)
setRemember
in interface UIFunctionsUserPrompter
public void setRememberText(String rememberText)
setRememberText
in interface UIFunctionsUserPrompter
public void setRememberOnlyIfButton(int button)
setRememberOnlyIfButton
in interface UIFunctionsUserPrompter
public void setUrl(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(Class<?> cla, String path, String name)
public void setTextIconResource(String resource)
public void addListener(UserPrompterResultListener l)
public void setDefaultButtonByPos(int pos)
public void setOneInstanceOf(String instanceID)
UIFunctionsUserPrompter
setOneInstanceOf
in interface UIFunctionsUserPrompter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |