Package cn.edu. ynu. Sei. ATM. Client. UI;
Import org. Eclipse. SWT. SWT;
Import org. Eclipse. SWT. Widgets. Button;
Import org. Eclipse. SWT. Widgets. composite;
Import org. Eclipse. SWT. Widgets. label;
/**
* Note window
* @ Author 88250
*/
Public class noticecomposite extends Composite
{
/**
* Return button
*/
Private button returnbtn = NULL;
/**
* Precautions
*/
Private label Label = NULL;
/**
* Instance creation considerations
* @ Param parent window
*/
Public noticecomposite (composite parent)
{
Super (parent, SWT. None );
Returnbtn = new button (parent, SWT. None );
Returnbtn. settext ("return ");
Returnbtn. setbounds (79,150, 54, 29 );
Label = new label (parent, SWT. None );
Label. settext ("1. Prompt for safe use... 2. prevent others from stealing passwords. 3. Card swallowing ");
Label. setbounds (71, 81,150, 50 );
}
/**
* Set the visibility of controls in the container
* @ Param B visibility
*/
Public void setcontentsvisible (Boolean B)
{
Label. setvisible (B );
Returnbtn. setvisible (B );
}
/**
* Get the return button
* @ Return: Return button
*/
Public button getreturnbtn ()
{
Return returnbtn;
}
@ Override
Public void dispose ()
{
Super. Dispose ();
}
@ Override
Protected void checksubclass ()
{
// Disable the check that prevents subclassing of SWT Components
}
}