Codota Logo
FieldScreenTab.getFieldScreenLayoutItems
Code IndexAdd Codota to your IDE (free)

How to use
getFieldScreenLayoutItems
method
in
com.atlassian.jira.issue.fields.screen.FieldScreenTab

Best Java code snippets using com.atlassian.jira.issue.fields.screen.FieldScreenTab.getFieldScreenLayoutItems (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: com.atlassian.jira.plugins/jira-workflow-sharing-plugin

@Override
public Set<String> getClassnamesForScreen(String screenId)
{
  Set<String> classNames = new HashSet<String>();
  if(StringUtils.isNumeric(screenId))
  {
    FieldScreen screen = fieldScreenManager.getFieldScreen(Long.parseLong(screenId));
    for(FieldScreenTab tab : screen.getTabs())
    {
      List<FieldScreenLayoutItem> items = tab.getFieldScreenLayoutItems();
      for(FieldScreenLayoutItem item : items)
      {
        String cfClassname = customFieldsHelper.getCustomFieldTypeClassname(item.getFieldId());
        if(StringUtils.isNotBlank(cfClassname))
        {
          classNames.add(cfClassname);
        }
      }
    }
  }
  return classNames;
}
origin: com.atlassian.jira/jira-core

public ErrorCollection execute()
{
  ErrorCollection errorCollection = new SimpleErrorCollection();
  // If the tab has any fields on it, then highlight the fields that are being added
  boolean highlightFields = !getTab().getFieldScreenLayoutItems().isEmpty();
  // Go through the array backwards so that the fields are added in the order they appear in the listbox on the page
  for (int i = fieldId.length - 1; i >= 0; i--)
  {
    getTab().addFieldScreenLayoutItem(fieldId[i], fieldPos);
    if (highlightFields)
    {
      hlFields.add(fieldId[i]);
    }
  }
  return errorCollection;
}
origin: com.atlassian.jira.plugins/jira-workflow-sharing-plugin

@Override
public String[] getCustomFieldIdsForWorkflowScreens(JiraWorkflow workflow)
{
  Set<String> ids = new HashSet<String>();
  Collection<ActionDescriptor> allActions = workflow.getAllActions();
  for (ActionDescriptor action : allActions)
  {
    if(FIELDSCREEN_VIEW.equals(action.getView()) && action.getMetaAttributes().containsKey(FIELDSCREEN_ID_NAME))
    {
      String screenId = (String) action.getMetaAttributes().get(FIELDSCREEN_ID_NAME);
      if(StringUtils.isNumeric(screenId))
      {
        FieldScreen screen = fieldScreenManager.getFieldScreen(Long.parseLong(screenId));
        for(FieldScreenTab tab : screen.getTabs())
        {
          List<FieldScreenLayoutItem> items = tab.getFieldScreenLayoutItems();
          for(FieldScreenLayoutItem item : items)
          {
            ids.add(item.getFieldId());
          }
        }
      }
    }
  }
  
  return ids.toArray(new String[0]);
}
origin: com.atlassian.jira/jira-rest-plugin

final List<FieldScreenLayoutItem> fieldScreenLayoutItems = tab.getFieldScreenLayoutItems();
final List<ScreenableFieldBean> fieldBeans = new ArrayList<ScreenableFieldBean>(fieldScreenLayoutItems.size());
origin: com.atlassian.jira/jira-rest-plugin

for (FieldScreenLayoutItem fieldScreenLayoutItem : fieldScreenTab.getFieldScreenLayoutItems())
origin: com.atlassian.jira.plugins/jira-workflow-sharing-plugin

List<FieldScreenLayoutItem> items = tab.getFieldScreenLayoutItems();
origin: com.atlassian.jira/jira-core

for (final FieldScreenTab fieldScreenTab : fieldScreenTabs)
  final List<FieldScreenLayoutItem> fieldScreenLayoutItems = fieldScreenTab.getFieldScreenLayoutItems();
  final List<FieldScreenRenderLayoutItem> fieldScreenRenderLayoutItems = new ArrayList<FieldScreenRenderLayoutItem>(fieldScreenLayoutItems.size());
  for (FieldScreenLayoutItem fieldScreenLayoutItem : fieldScreenLayoutItems)
origin: com.atlassian.jira/jira-core

public FieldScreenRenderTabImpl createTabRender(final IssueTabRendererDto issueTabRendererDto)
{
  final Issue issue = issueTabRendererDto.getIssue();
  final FieldScreenTab fieldScreenTab = issueTabRendererDto.getFieldScreenTab();
  final List<FieldScreenLayoutItem> fieldLayoutItems = fieldScreenTab.getFieldScreenLayoutItems();
  final Collection<FieldScreenLayoutItem> availableFieldLayoutItems = fieldLayoutItemsFilter.filterAvailableFieldScreenLayoutItems(issueTabRendererDto.getCondition(), fieldLayoutItems);
  final Collection<FieldScreenLayoutItem> visibleFieldScreenLayoutItems = fieldLayoutItemsFilter.filterVisibleFieldScreenLayoutItems(issue, availableFieldLayoutItems);
  final Iterable<FieldScreenRenderLayoutItem> fieldScreenRenderLayoutItems = transformFieldScreenLayoutItemsToRenderers(issueTabRendererDto, visibleFieldScreenLayoutItems);
  return new FieldScreenRenderTabImpl(fieldScreenTab.getName(), issueTabRendererDto.getCurrentTabPosition(), newArrayList(fieldScreenRenderLayoutItems));
}
origin: com.atlassian.jira/jira-rest-plugin

  target = target + 1;
if (target >= tab.getFieldScreenLayoutItems().size()) {
  tab.moveFieldScreenLayoutItemLast(fieldToMove.getPosition());
origin: com.atlassian.jira/jira-rest-plugin

private Field addFieldToScreen(final Long screenId, final Long tabId, final String fieldId)
{
  final FieldScreenTab tab = getTabById(getFieldScreen(screenId), tabId);
  final AddFieldToScreenUtil addFieldToScreenUtil = new AddFieldToScreenUtilImpl(jiraAuthenticationContext, fieldManager, fieldScreenManager);
  addFieldToScreenUtil.setFieldScreenId(screenId);
  addFieldToScreenUtil.setTabPosition(tab.getPosition());
  addFieldToScreenUtil.setFieldId(new String[] { fieldId });
  addFieldToScreenUtil.setFieldPosition("" + (tab.getFieldScreenLayoutItems().size() + 1));
  final com.atlassian.jira.util.ErrorCollection errorCollection = addFieldToScreenUtil.validate();
  if (errorCollection.hasAnyErrors())
  {
    throwWebException(errorCollection);
  }
  addFieldToScreenUtil.execute();
  return fieldManager.getField(fieldId);
}
origin: com.atlassian.jira/jira-core

  if (fieldPos < 0 || fieldPos > getTab().getFieldScreenLayoutItems().size())
fieldPos = getTab().getFieldScreenLayoutItems().size();
origin: com.atlassian.jira/jira-core

for (FieldScreenLayoutItem fieldScreenLayoutItem : fieldScreenTab.getFieldScreenLayoutItems())
com.atlassian.jira.issue.fields.screenFieldScreenTabgetFieldScreenLayoutItems

Popular methods of FieldScreenTab

  • getId
  • getFieldScreen
  • getFieldScreenLayoutItem
  • getName
  • getPosition
  • setPosition
  • addFieldScreenLayoutItem
  • setFieldScreen
  • getGenericValue
  • isContainsField
  • moveFieldScreenLayoutItemFirst
  • moveFieldScreenLayoutItemLast
  • moveFieldScreenLayoutItemFirst,
  • moveFieldScreenLayoutItemLast,
  • moveFieldScreenLayoutItemToPosition,
  • remove,
  • removeFieldScreenLayoutItem,
  • rename,
  • setGenericValue,
  • setName,
  • store

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Kernel (java.awt.image)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JFileChooser (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now