/** * This is used to acquire the text label for this section if * one has been specified. A text label can only exist in a * section if there are no elements associated with the section * and the section is not composite, as in it does not contain * any further sections. * * @return this returns the text label for this section */ public Label getText() throws Exception { return model.getText(); }
/** * This is used to acquire the text label for this section if * one has been specified. A text label can only exist in a * section if there are no elements associated with the section * and the section is not composite, as in it does not contain * any further sections. * * @return this returns the text label for this section */ public Label getText() throws Exception { return model.getText(); }
/** * This is used to acquire the text label for this section if * one has been specified. A text label can only exist in a * section if there are no elements associated with the section * and the section is not composite, as in it does not contain * any further sections. * * @return this returns the text label for this section */ public Label getText() throws Exception { return model.getText(); }
String text = ""; for (Model model : mModelList) { if (model.isSelected()) { text += model.getText(); } } Log.d("TAG","Output : " + text);
public ViewHolder(final View itemView) { super(itemView); context = itemView.getContext(); tvText = (TextView) itemView.findViewById(R.id.tvText); } public void bind(final Model model) { tvText.setText(model.getText()); itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Context context = itemView.getContext(); Intent intent = new Intent(context, model.getLaunchClass()); context.startActivity(intent); } }); }
public void onBindViewHolder(final MyViewHolder holder, int position) { final Model model = mModelList.get(position); holder.textView.setText(model.getText()); holder.view.setBackgroundColor(model.isSelected() ? Color.CYAN : Color.WHITE); holder.textView.setOnClickListener(new View.OnClickListener() {
Label label = root.getText();
Label label = root.getText();
/** * This is used to validate the configuration of the scanned class. * If a <code>Text</code> annotation has been used with elements * then validation will fail and an exception will be thrown. * * @param type this is the object type that is being scanned */ private void validateText(Class type) throws Exception { Label label = root.getText(); if(label != null) { if(!label.isTextList()) { if(!elements.isEmpty()) { throw new TextException("Elements used with %s in %s", label, type); } if(root.isComposite()) { throw new TextException("Paths used with %s in %s", label, type); } } } else { if(scanner.isEmpty()) { primitive = isEmpty(); } } }
/** * This is used to validate the configuration of the scanned class. * If a <code>Text</code> annotation has been used with elements * then validation will fail and an exception will be thrown. * * @param type this is the object type that is being scanned */ private void validateText(Class type) throws Exception { Label label = root.getText(); if(label != null) { if(!label.isTextList()) { if(!elements.isEmpty()) { throw new TextException("Elements used with %s in %s", label, type); } if(root.isComposite()) { throw new TextException("Paths used with %s in %s", label, type); } } } else { if(scanner.isEmpty()) { primitive = isEmpty(); } } }
Label label = root.getText();
/** * This is used to validate the configuration of the scanned class. * If a <code>Text</code> annotation has been used with elements * then validation will fail and an exception will be thrown. * * @param type this is the object type that is being scanned */ private void validateText(Class type) throws Exception { Label label = root.getText(); if(label != null) { if(!label.isTextList()) { if(!elements.isEmpty()) { throw new TextException("Elements used with %s in %s", label, type); } if(root.isComposite()) { throw new TextException("Paths used with %s in %s", label, type); } } } else { if(scanner.isEmpty()) { primitive = isEmpty(); } } }