本文整理了Java中org.protege.editor.core.ui.view.View.add()
方法的一些代码示例,展示了View.add()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。View.add()
方法的具体详情如下:
包路径:org.protege.editor.core.ui.view.View
类名称:View
方法名:add
暂无
代码示例来源:origin: stackoverflow.com
public View getView (int position, View convertView, ViewGroup parent){
if( convertView == null ){
convertView = inflater.inflate(R.layout.my_list_item, parent, false);
}
//images is a array of bitmap here
for(int i =0;i<images.length;i++){
ImageView img = new ImageView(getContext());
img.setImageBitmap(images[i]);
convertView.add(img);
}
return convertView;
}
代码示例来源:origin: org.protege/protege-editor-core-application
public void createUI() {
initialisedContent = true;
logger.debug("Creating UI for " + this.getViewName());
setLayout(new BorderLayout(3, 3));
viewComponentHolder = new JPanel(new BorderLayout());
viewBarComponent = new ViewBarComponent(getViewName(), plugin.getBackgroundColor(), viewComponentHolder);
add(viewBarComponent);
addViewManipulationActions();
createContent();
createViewToolBar();
viewBarComponent.getViewBar().getViewBanner().setPinned(pinned);
}
代码示例来源:origin: protegeproject/protege
public void createUI() {
initialisedContent = true;
logger.debug("Creating the UI for the '{}' view", this.getViewName());
setLayout(new BorderLayout(0, 0));
viewComponentHolder = new JPanel(new BorderLayout());
viewBarComponent = new ViewBarComponent(getViewName(), plugin.getBackgroundColor(), viewComponentHolder);
add(viewBarComponent);
addViewManipulationActions();
createContent();
createViewToolBar();
viewBarComponent.getViewBar().getViewBanner().setPinned(pinned);
}
代码示例来源:origin: stackoverflow.com
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_dispositivi, container, false);
for (int i = 0; i < arrayList.size(); i++) {
View tv = inflater.inflate(R.layout.ui_textview, container, false);
rootView.add(tv);
}
return rootView;
代码示例来源:origin: edu.stanford.protege/org.protege.editor.core.application
public void createUI() {
initialisedContent = true;
logger.debug("Creating UI for " + this.getViewName());
setLayout(new BorderLayout(3, 3));
viewComponentHolder = new JPanel(new BorderLayout());
viewBarComponent = new ViewBarComponent(getViewName(), plugin.getBackgroundColor(), viewComponentHolder);
add(viewBarComponent);
addViewManipulationActions();
createContent();
createViewToolBar();
viewBarComponent.getViewBar().getViewBanner().setPinned(pinned);
}
代码示例来源:origin: stackoverflow.com
public View getView(int position, View convertView, ViewGroup parent) {
View v;
if (convertView == null)
v = LayoutInflater.from(context).inflate(R.layout.row, parent, false);
else
v = convertView;
if(position == 0){
Button button = new Button();
v.add( button );
}
return v;
}
代码示例来源:origin: stackoverflow.com
View parent = (View)findViewById(R.id.yourparent_layout_for_webview); // this
WebView webView = new WebView();
parent.add(webView);
webView.getSettings().setBuiltInZoomControls(true);
内容来源于网络,如有侵权,请联系作者删除!