Checks if the gallery is first opened in results tab.<p>

@return true if gallery is first opened in results tab, false otherwise
779407
public boolean isOpenInResults() {

        if (I_CmsGalleryProviderConstants.GalleryTabId.cms_tab_results.name().equals(m_searchObject.getTabId())) {
            return true;
        }
        return false;
    }
169944
@Override
	public boolean next() {
		if (isLhsEmpty)
			return false;
		if (s2.next())
			return true;
		else if (!(isLhsEmpty = !s1.next())) {
			s2.beforeFirst();
			return s2.next();
		} else {
			return false;
		}
	}
1305194
public boolean hasSelectFolder() {

        if (hasSelectResource()) {
            for (CmsResourceTypeBean type : m_dialogBean.getTypes()) {
                if (type.getType().contains(I_CmsGalleryProviderConstants.RESOURCE_TYPE_FOLDER)) {
                    return true;
                }
            }
        }
        return false;
    }
558528
@Override
    public boolean isOrdered() {
        if (tc.isEntryEnabled())
            SibTr.entry(tc, "isOrdered");

        boolean returnValue = getTarget().isOrdered();
        if (tc.isEntryEnabled())
            SibTr.exit(tc, "isOrdered", new Boolean(returnValue));

        return returnValue;
    }
828175
private boolean isReady() {

		assert disposed != null;
		assert open != null;

		if (disposed.get()) {
			LOG.warn("Cannot get image, webcam has been already disposed");
			return false;
		}

		if (!open.get()) {
			if (autoOpen) {
				open();
			} else {
				return false;
			}
		}

		return true;
	}
595237
protected boolean checkVisible() {

        return getHoverbar().getController().isEditable()
            && !CmsSitemapView.getInstance().isModelPageMode()
            && (!CmsSitemapView.getInstance().isGalleryMode() || getHoverbar().getController().getData().isGalleryManager());
    }
857632
public boolean hasMoreElements()
    {
        try
        {
            if (!hasCalledCheck)
            {
                hasCalledCheck = true;
                hasNext = resultSetAndStatment.m_rs.next();
            }
        }
        catch (SQLException e)
        {
            LoggerFactory.getDefaultLogger().error(e);
            //releaseDbResources();
            hasNext = false;
        }
        finally
        {
            if(!hasNext)
            {
                releaseDbResources();
            }
        }
        return hasNext;
    }
1347661
private static boolean hasJavaWebstartLibrary() {
        boolean hasWebStartLibrary = true;
        try {
            Class.forName("com.sun.jnlp.JNLPClassLoaderIf");
        } catch (final ClassNotFoundException e) {
            hasWebStartLibrary = false;
        }
        return hasWebStartLibrary;
    }
89981
private void resetLastResult() {

        m_result = null;
        m_lastException = null;
        m_categoriesFound = null;
        m_parameterRestriction = null;
        if (!m_parsedQuerySet) {
            // don't reset parsed query if it was deliberately set, otherwise initializing search bean from JSP might fail
            m_parameters.setParsedQuery(null);
        }
    }
1047389
public CmsGallerySearchResultList getResult(CmsGallerySearchParameters params) throws CmsException {

        CmsGallerySearchResultList result = null;
        if ((m_cms == null) || (m_index == null)) {
            throw new CmsException(Messages.get().container(Messages.ERR_SEARCH_NOT_INITIALIZED_0));
        }
        result = m_index.gallerySearch(m_cms, params);

        if (result.size() > 0) {

            result.calculatePages(params.getResultPage(), params.getMatchesPerPage());

        } else {
            result = new CmsGallerySearchResultList();
        }

        return result;
    }
298889
public void uncheckGalleries(List<String> galleries) {

        for (String gallery : galleries) {
            CmsListItem item = searchTreeItem(m_scrollList, gallery);
            if (item != null) {
                item.getCheckBox().setChecked(false);
            }
        }
    }
1217640
@Override
	public boolean hasNext()
	{
		try
		{
			
		
			if(this.resultSet == null)
				return false;
			else if(!this.resultSet.next())
			{
				this.dispose();
				return false;
			}
			return true;
		}
		catch (SQLException e)
		{
			dispose();

			throw new CommunicationException(e.getMessage(),e);
		}
			
	}
542004
private int getResultsDisplayed(CmsGallerySearchBean searchObj) {

        int resultsDisplayed = searchObj.getMatchesPerPage() * searchObj.getLastPage();
        return (resultsDisplayed > searchObj.getResultCount()) ? searchObj.getResultCount() : resultsDisplayed;
    }
835824
public static boolean containsResultEntry(final Response<SearchResult> response) {
        if (response != null) {
            val result = response.getResult();
            return result != null && result.getEntry() != null;
        }
        return false;
    }
998850
public void setStartGallery(String galleryType, String galleryUri) {

        if (galleryUri == null) {
            m_startGalleriesSettings.remove(galleryType);
        } else {
            m_startGalleriesSettings.put(galleryType, galleryUri);
        }
    }
144140
public void setGalleryDefaultScope(String galleryDefaultScope) {

        m_galleryDefaultScope = galleryDefaultScope;
        try {
            CmsGallerySearchScope.valueOf(galleryDefaultScope);
        } catch (Throwable t) {
            LOG.warn(t.getLocalizedMessage(), t);
        }
    }
1159501
@Override
    public boolean hasArtwork() {
        for (FTArtworkType at : FTArtworkType.values()) {
            // We're not countin the artwork, we're seeing if any exists, so quit when we find something
            if (hasArtwork(at) && !artwork.isEmpty()) {
                return true;
            }
        }
        return false;
    }