本文整理汇总了Java中org.eclipse.swt.accessibility.Accessible类的典型用法代码示例。如果您正苦于以下问题:Java Accessible类的具体用法?Java Accessible怎么用?Java Accessible使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Accessible类属于org.eclipse.swt.accessibility包,在下文中一共展示了Accessible类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: invokeOfReceiverExtensionMethod
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
@Test
@ConditionalIgnore( condition = GtkPlatform.class )
public void invokeOfReceiverExtensionMethod() {
StyledText receiver = reflectionUtil.newInstance( StyledTextAdapter.class );
reflectionUtil.setField( receiver, FIELD_NAME_DISPLAY, displayHelper.getDisplay() );
reflectionUtil.invoke( receiver, "initializeAccessible" );
Accessible actual = reflectionUtil.getField( receiver, "acc", Accessible.class );
assertThat( actual ).isNotNull();
}
开发者ID:fappel,项目名称:xiliary,代码行数:12,代码来源:ControlReflectionUtilTest.java
示例2: ProjectPropertiesComposite
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
/**
* Creates the composite.
*
* @param parent
* The parent composite.
* @param style
* Style which will be used.
* @param preferencesDTO
* Stores connection information.
* @param validatorStatusListener
* The IChangeListener used for the validator.
*/
public ProjectPropertiesComposite(Composite parent, int style, ProjectPropertiesDTO preferencesDTO,
IChangeListener validatorStatusListener) {
super(parent, style);
this.preferencesDTO = preferencesDTO;
this.validatorStatusListener = validatorStatusListener;
setLayout(new GridLayout(1, false));
Group grpCdo = new Group(this, SWT.NONE);
grpCdo.setLayout(new GridLayout(2, false));
GridData gdGrpCdo = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
gdGrpCdo.minimumHeight = 150;
gdGrpCdo.heightHint = 156;
grpCdo.setLayoutData(gdGrpCdo);
grpCdo.setText("CDO");
Label lblHostname = new Label(grpCdo, SWT.NONE);
lblHostname.setText("Hostname:");
txtCDOHostname = new Text(grpCdo, SWT.BORDER);
txtCDOHostname.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
Accessible accLblHostname = lblHostname.getAccessible();
Accessible accTxtHostname = txtCDOHostname.getAccessible();
accLblHostname.addRelation(ACC.RELATION_LABEL_FOR, accTxtHostname);
accTxtHostname.addRelation(ACC.RELATION_LABELLED_BY, accLblHostname);
Label lblPort = new Label(grpCdo, SWT.NONE);
lblPort.setText("Port:");
txtCDOPort = new Text(grpCdo, SWT.BORDER);
txtCDOPort.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));
Accessible accLblPort = lblPort.getAccessible();
Accessible accTxtPort = txtCDOPort.getAccessible();
accLblPort.addRelation(ACC.RELATION_LABEL_FOR, accTxtPort);
accTxtPort.addRelation(ACC.RELATION_LABELLED_BY, accLblPort);
Label lblRepository = new Label(grpCdo, SWT.NONE);
lblRepository.setText("Repository:");
txtCDORepository = new Text(grpCdo, SWT.BORDER);
txtCDORepository.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
Accessible accLblRepository = lblRepository.getAccessible();
Accessible accTxtRepository = txtCDORepository.getAccessible();
accLblRepository.addRelation(ACC.RELATION_LABEL_FOR, accTxtRepository);
accTxtRepository.addRelation(ACC.RELATION_LABELLED_BY, accLblRepository);
Label lblUsername = new Label(grpCdo, SWT.NONE);
lblUsername.setText("Username:");
txtCDOUsername = new Text(grpCdo, SWT.BORDER);
txtCDOUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
Accessible accLblUsername = lblUsername.getAccessible();
Accessible accTxtUsername = txtCDOUsername.getAccessible();
accLblUsername.addRelation(ACC.RELATION_LABEL_FOR, accTxtUsername);
accTxtUsername.addRelation(ACC.RELATION_LABELLED_BY, accLblUsername);
Label lblPassword = new Label(grpCdo, SWT.NONE);
lblPassword.setText("Password:");
txtCDOPassword = new Text(grpCdo, SWT.BORDER | SWT.PASSWORD);
txtCDOPassword.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
Accessible accLblPassword = lblPassword.getAccessible();
Accessible accTxtPassword = txtCDOPassword.getAccessible();
accLblPassword.addRelation(ACC.RELATION_LABEL_FOR, accTxtPassword);
accTxtPassword.addRelation(ACC.RELATION_LABELLED_BY, accLblPassword);
mBindingContext = createDataBindings();
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:76,代码来源:ProjectPropertiesComposite.java
示例3: getAccessible
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
public Accessible getAccessible() {
return tree.getAccessible();
}
开发者ID:AcademicTorrents,项目名称:AcademicTorrents-Downloader,代码行数:4,代码来源:TreeDelegate.java
示例4: getAccessible
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
public Accessible getAccessible() {
return table.getAccessible();
}
开发者ID:AcademicTorrents,项目名称:AcademicTorrents-Downloader,代码行数:4,代码来源:TableDelegate.java
示例5: _getAccessible
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
Accessible _getAccessible() {
if (accessible == null) {
accessible = Accessible.internal_new_Accessible(this);
}
return accessible;
}
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:7,代码来源:Control.java
示例6: createControl
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
public Control createControl( Composite parent )
{
container = new Composite( parent, SWT.NONE );
RowLayout layout = new RowLayout( SWT.HORIZONTAL );
layout.marginBottom = 0;
layout.marginHeight = 0;
layout.marginLeft = 0;
layout.marginRight = 0;
layout.marginTop = 0;
layout.marginWidth = 0;
layout.spacing = 0;
container.setLayout( layout );
left = FormWidgetFactory.getInstance( ).createButton( container,
SWT.TOGGLE,
false );
left.setToolTipText( Messages.getString( "TextAlignPropertyDescriptor.0" ) ); //$NON-NLS-1$
center = FormWidgetFactory.getInstance( ).createButton( container,
SWT.TOGGLE,
false );
center.setToolTipText( Messages.getString( "TextAlignPropertyDescriptor.1" ) ); //$NON-NLS-1$
right = FormWidgetFactory.getInstance( ).createButton( container,
SWT.TOGGLE,
false );
right.setToolTipText( Messages.getString( "TextAlignPropertyDescriptor.2" ) ); //$NON-NLS-1$
justify = FormWidgetFactory.getInstance( ).createButton( container,
SWT.TOGGLE,
false );
justify.setToolTipText( Messages.getString( "TextAlignPropertyDescriptor.3" ) ); //$NON-NLS-1$
Button[] btns = {
left, center, right, justify,
};
// The value is used to present active value and image key.
String[] values = {
DesignChoiceConstants.TEXT_ALIGN_LEFT,
DesignChoiceConstants.TEXT_ALIGN_CENTER,
DesignChoiceConstants.TEXT_ALIGN_RIGHT,
DesignChoiceConstants.TEXT_ALIGN_JUSTIFY,
};
for ( int i = 0; i < btns.length; i++ )
{
btns[i].setData( values[i] );
btns[i].addSelectionListener( listener );
btns[i].getAccessible( ).addAccessibleListener(new AccessibleAdapter() {
public void getName(AccessibleEvent e) {
Accessible accessible = (Accessible) e.getSource();
Button item = (Button) accessible.getControl();
if (item != null) {
e.result = item.getToolTipText();
}
}
});
}
return container;
}
开发者ID:eclipse,项目名称:birt,代码行数:57,代码来源:FontAlignPropertyDescriptor.java
示例7: getAccessible
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
public Accessible getAccessible(){
return this.text.getAccessible();
}
开发者ID:elexis,项目名称:elexis-3-base,代码行数:4,代码来源:AbstractBrowseText.java
示例8: getAccessible
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
public Accessible getAccessible() {
return tree.getAccessible();
}
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:5,代码来源:TreeWrapper.java
示例9: getAccessible
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
/**
* Returns the accessible object for the receiver.
* <p>
* If this is the first time this object is requested, then the object is
* created and returned. The object returned by getAccessible() does not
* need to be disposed.
* </p>
*
* @return the accessible object
*
* @exception SWTException
* <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been
* disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the
* thread that created the receiver</li>
* </ul>
*
* @see Accessible#addAccessibleListener
* @see Accessible#addAccessibleControlListener
*
* @since 2.0
*/
public Accessible getAccessible() {
checkWidget();
return _getAccessible();
}
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:28,代码来源:Control.java
示例10: getAccessible
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
/**
* Returns the accessible object for the receiver.
* If this is the first time this object is requested,
* then the object is created and returned.
*
* @return the accessible object
*
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @see Accessible#addAccessibleListener
* @see Accessible#addAccessibleControlListener
*
* @since 3.3
*/
@Override
public Accessible getAccessible() {
return fList.getAccessible();
}
开发者ID:fabioz,项目名称:Pydev,代码行数:22,代码来源:HistoryFilteredList.java
示例11: getAccessible
import org.eclipse.swt.accessibility.Accessible; //导入依赖的package包/类
public Accessible getAccessible();
开发者ID:AcademicTorrents,项目名称:AcademicTorrents-Downloader,代码行数:2,代码来源:TableOrTreeSWT.java
注:本文中的org.eclipse.swt.accessibility.Accessible类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论