Extjs隐藏彩色区域中的alpha条和文本

时间:2016-03-09 15:18:15

标签: javascript extjs

我正在使用this从色域选择器中选择颜色。但是我不希望alpha栏可用和可见。如何从概述中隐藏此内容?这似乎是一个简单的问题,但我真的不知道答案。

1 个答案:

答案 0 :(得分:3)

如果覆盖该类,或将其扩展到您自己的组件中,并将构造函数更改为以下内容:

public class KeyedLinkedList<K,Phrase>
{
    private KeyNode first;
    private int size;

    private class KeyNode
    {
        K key;
        Phrase value;
        KeyNode previous;
        KeyNode next;

        public KeyNode(K key, Phrase value, KeyNode previous, KeyNode next)
        {
            this.key = key;
            this.value = value;
            this.previous = previous;
            this.next = next;
        }
    }

    public int size()
    {
        return size;
    }

    public boolean put(K key, Phrase val)
    {
        if(isEmpty())
        {
            first = new KeyNode(key, val, null, null);
            first.next = first;
            first.previous = first;
            size++;
            return true;
        }
        KeyNode temp = first;
        if(temp.key.equals(key))
        {

                //****ERROR LOCATION****//
            temp.value.addPaper(val.getPapers().get(0));
                //****ERROR LOCATION****//

            if(temp.value.getPapers().size() < 3)
                return false;
            return true;
        }
        temp = temp.next;
        while(temp != first)
        {
            if(temp.key.equals(key))
            {
                temp.value.addPaper(val.getPapers().get(0));
                if(temp.value.getPapers().size() < 3)
                    return false;
                return true;
            }
            temp = temp.next;
        }
        temp.previous.next = new KeyNode(key, val, temp.previous.next, first);
        first.previous = temp.previous.next;
        size++;
        return true;
    }
}